javascript - YUI3 Selectors / query -


there list of check boxes in table , have assigned unique key value attribute of each checkbox. should selector in yui3 can single checkbox object if know value.

following sample of structure:

<table id="mytable"> <tr>   <td><input type="checkbox" value="1" /></td><td>apple store</td> <td><input type="checkbox" value="2" /></td><td>play store</td> </tr> </table> 

code required in following format: y.one("#mytable input[type=checkbox,value=1]");

this must return checkbox object apple store not working.. idea?

you need attribute selector each attribute trying match. can't combine name/value pairs in single attribute selector.

[type=checkbox][value=1] 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -