jquery input
<table><tr><td><input type="radion" class="check"></td><td>1111111</td><td>111111111</td><td>1111111111</td><td>11111111111</td></tr></table> Copy after login
How to make input selected by clicking
? Reply to discussion (solution)
$("tr").click(function(){ $(this).find("input[type='radio']").attr("checked",true);}) Copy after login
Copy after login
Copy after login
Copy after login
Directly determine that when clicking on all td in tr, the radio button will be selected
$("tr").click(function(){ $(this).find("input[type='radio']").attr("checked",true);}) Copy after login
Copy after login
Copy after login
Copy after login
Directly determine that when clicking on all tds in tr, the radio button will be selected It feels "sluggish"... Sometimes it works, sometimes clicking doesn't. . . .
$("tr").click(function(){ $(this).find("input[type='radio']").attr("checked",true);}) Copy after login
Copy after login
Copy after login
Copy after login
Directly determine that when clicking on all tds in tr, the radio button will be selected It feels "slow"... sometimes it works, sometimes Clicking is useless. . . . No, please send your html and I will try it
$("tr").click(function(){ $(this).find("input[type='radio']").attr("checked",true);}) Copy after login
Copy after login
Copy after login
Copy after login
Directly determine that when clicking on all td in tr, the radio button will be selected Feeling "sluggish" um...sometimes it works, sometimes clicking doesn't. . . . No, you can send your html and I will try it <table id="t1"> <tr> </tr> <s:iterator value="#session.address_list" var="address" status="s"> <tr id="confirm_address"> <s:if test="#address.isdefaultaddress==1"> <td style="width: 10px;"><input type="radio" class="check" value="<s:property value="#address.id" />" name="addressid" checked="checked"></td> </s:if> <s:else> <td style="width: 10px;"><input type="radio" class="check" value="<s:property value="#address.id" />" name="addressid"></td> </s:else> <td style="width: 250px;"><s:property value="#address.Address" /></td> <td><s:property value="#address.consigneeName" /></td> <td><s:property value="#address.mobileTel" /></td> <td><s:property value="#address.lineTel" /></td> <td><s:property value="#address.PostalCode" /></td> </tr> </s:iterator> </table> Copy after login
jsp page If you use if else to include td in the jsp page, I’m not sure whether it will have any impact
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
2024-10-22 09:46:29
2024-10-13 13:53:41
2024-10-12 12:15:51
2024-10-11 22:47:31
2024-10-11 19:36:51
2024-10-11 15:50:41
2024-10-11 15:07:41
2024-10-11 14:21:21
2024-10-11 12:59:11
2024-10-11 12:17:31