如何在jQuery选择器中使用javascript变量
<script type="text/javascript">$(function(){
$("input").click(function(){
var x = $(this).attr("name");
$("input[id=x]").hide();
}); });</script><input type="text" id="bx"/><input type="button" name="bx"/><input type="text" id="by"/>
<input type="button" name="by"/>
慕哥6287543
慕森卡
随时随地看视频慕课网APP
相关分类