为什么我的<input type="submit"
不显示在http://ballpointradio.com/new/page_edit.php?它应该在textarea下面。我的输入类型=“提交”不显示?
这真的让我莫名其妙!它是我的jQuery吗?我很确定它不是...
为什么我的<input type="submit"
不显示在http://ballpointradio.com/new/page_edit.php?它应该在textarea下面。我的输入类型=“提交”不显示?
这真的让我莫名其妙!它是我的jQuery吗?我很确定它不是...
$("#page_selection").change(function(){
$("#" + this.value).show().siblings().hide();
});
$("page_selection").change();
此代码,负载,做到这一点:
$("#edit1").show().siblings().hide();
考虑到<input type="submit">
是$('edit1')
兄弟,它被隐藏!
只需将.siblings()
更改为.siblings('textarea')
,因此它只隐藏同时也是textareas的兄弟姐妹!
它有style="display: none"
集合。
虽然我无法立即找出原因。
我不是一个jquery的人,但你可以看看hide()
方法调用的一些可能会干扰。此举一出,例如:
$("#" + this.value).show().siblings().hide();
为了确认Lauri的答案,它绝对是隐藏提交按钮的Javascript。当你禁用Javascript时,按钮正常显示。我也会仔细看看上面的这一行。 – Wireblue 2010-06-24 03:16:56
它*是你的jQuery的东西。当我禁用了JavaScript(我最初做的)时,它显示在第二个文本区域的右侧。启用时,文本区域或提交按钮不显示。 – animuson 2010-06-24 03:12:35