Access to Label value with Javascript

Posted by streetparade on Stack Overflow See other posts from Stack Overflow or by streetparade
Published on 2010-03-18T11:04:08Z Indexed on 2010/03/18 11:11 UTC
Read the original article Hit count: 150

Filed under:
|
|
|

I need to access to a value in a checkbox, the atribute value has content, so i need to place the id somewhere else i created a label, but i have not access to that value

alert(check[i].label); // doesnt work 

where else can i place a value in checkbox. Please dont write that i can do this

  <input type='checkbox' id='bla' name='mybla' vlaue='myvalue'> Hy

Where can i place some other values ?

I tryed with this

<input type='checkbox' id='bla' name='mybla' vlaue='myvalue' label='myothervalue'> Hy

first i get all checkbox ect... and in the for loop i did this

alert(check[i].label); // doesnt work 

How can i do that?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery