Tag Archives: dom

Attaching information to a dom node using javascript

I had a requirement in my project where i had to attach some information to a dom node using javascript.
I created some checkboxes using DOM’s createElement method. Now the task was to assign userId information to each checkbox.
I knew that i can’t use the userId attribute for the “input” tag.

1
<input id="chk1" type="checkbox" />

The above code [...]

Posted in WEB 2.0, javascript | Also tagged | 1 Comment