Home >Web Front-end >HTML Tutorial >jquery input radion select_html/css_WEB-ITnose

jquery input radion select_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:25:08832browse

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>


How to make input selected by clicking b6c5a531a458a2e790c1fd6421739d1c?

Reply to discussion (solution)

$("tr").click(function(){    $(this).find("input[type='radio']").attr("checked",true);})

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);})

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);})

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);})

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>


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:
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