Hi can i pass an array element like below
for(var i=0;i<totalNones;i++)
{
$(this).children('td:eq(NoneElementsArray[i])').find('input:checkbox').hide();
alert('I am in ');
$(this).childre开发者_开发问答n('td:eq(NoneElementsArray[i])').append("<input type='radio' class=rad>");
}
It is not working for me. Please someone help me.
Yes you can, but currently you are using it as a string. Change it to:
$(this).children('td:eq('+NoneElementsArray[i]+')')
精彩评论