Access asp:CheckBox inner input from jQuery
Posted
by abatishchev
on Stack Overflow
See other posts from Stack Overflow
or by abatishchev
Published on 2010-04-05T23:02:26Z
Indexed on
2010/04/05
23:03 UTC
Read the original article
Hit count: 190
I have a jQuery
array acting on each control having corresponding class
:
function Foobar() {
$('.foo').each(function() {
// do something with $(this)
}
}
I can access client-side controls like <input class="foo">
and server-side controls like asp:TextBox CassClass="foo">
But setting CssClass
for asp:RadioButton
doesn't make a sense. Here is generated code:
<span class="foo">
<input type="radio" />
</span>
How to set class
for inner input
or another way gather it using jQuery
?
© Stack Overflow or respective owner