jquery input radion select_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:08
Original
815 people have browsed it

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

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template