In jQuery I can create a HTML element with data:
$(\'\').data(\"field\", { i: i, j: j }).appendTo(\"body\"); <
Use this javascript.
OR
Use jQuery like this.