My input type="submit" is not displaying?
why is my <input type="submit"
not display on开发者_如何学JAVA http://ballpointradio.com/new/page_edit.php? It's supposed to be underneath the textarea.
This really is baffling me!! Is it my jQuery? I'm pretty sure it isn't...
It has style="display: none"
set.
I wasn't able to immediately figure out why, though.
I'm not a jquery man, but you could look if some of the hide()
method calls could be interfering. This one, for example:
$("#" + this.value).show().siblings().hide();
$("#page_selection").change(function(){
$("#" + this.value).show().siblings().hide();
});
$("page_selection").change();
This code, on load, does this:
$("#edit1").show().siblings().hide();
Considering that the <input type="submit">
is a sibling of $('edit1')
, it gets hidden!
Just change .siblings()
to .siblings('textarea')
so it only hides siblings that are also textareas!
精彩评论