jquery churned radio buttons
new javascript/jquery carrying tough controlling this $(this) tide object.
i have list set radio buttons any row, any named s_<rowindex>. zero radio buttons checked default:
<tr>
<td align="left" style="width: 300px">
<div id="div_s_0">
<input type="radio" name="s_0" value="1" />public
<input type="radio" name="s_0" value="2" />not public
<input type="radio" name="s_0" value="3" />confidential
</div>
</td>
</tr>
<tr>
<td align="left" style="width: 300px">
<div id="div_s_1">
<input type="radio" name="s_1" value="1" />public
<input type="radio" name="s_1" value="2" />not public
<input type="radio" name="s_1" value="3" />confidential
</div>
</td>
</tr>
i'm perplexing jquery duty supplement new quarrel list whenever user selects radio button, nonetheless wholly now final quarrel table. i'd name charge clicked radio button, parse quarrel index (i.e. biased after '_') review array rows table. equal, supplement new row, otherwise, nothing.
my doubt twofold, depending i should dispute this:
1) i relapse name charge radio button, or
2) i relapse quarrel index quarrel i am now in?
Comments
Post a Comment