How to access the variable value based on class name using jquery
Posted
by kumar
on Stack Overflow
See other posts from Stack Overflow
or by kumar
Published on 2010-04-29T17:03:17Z
Indexed on
2010/04/29
17:07 UTC
Read the original article
Hit count: 271
jQuery
if ('#Grid tr[role="row"] td a.icon-plus') {
$(this).click();
}
else if ('#Grid tr[role="row"] td[role="grid"] a.icon-minus') {
return false;
}
I am doing here if a.icon-plus ( icon-plus is the class name for a)
is this right way to access?
can any one tell me how to do this?
Thanks for all time.
© Stack Overflow or respective owner