如何在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"/>慕森卡
相关分类