Hi, Using jquery,
The following line works i.e. radioClicks function gets called.
$("input:[name='"+54464+"']").bind( "click", radioClicks );
but this one doesn't:
$("input:[name='"+options.rowId+"']").bind( "click", radioClicks );
and yes, you have guessed it, options.rowId = 54464 (at least in the debugger) .
What am I missing ???
Thanks
EDIT:
I removed the : as some suggested, I used alert(options.rowId) and it shows 54464 as expected. Also, it is not used in a loop. The code is:
function radioFormatter (cellvalue, options, rowObject)
{
$("input[name='"+options.rowId+"']").bind( "click", radioClicks );
if("checked" == cellvalue)
return "<input type='radio' name='"+ name +"' id='"
+ options.colModel.name + "' value='" + options.rowId
+ "' checked>";
return "<input type='radio' name='" + name + "' id='" +options.colModel.name
+"' value='" + options.rowId + "'>";
}
It is used with jqgrid where I have a row with multiple columns with a radio button in it.
I have tried everything I can think of with no success...
Thanks