tags:

views:

48

answers:

2

Hi all, why is my <input type="submit" not display on 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...

+4  A: 

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();
Lauri Lehtinen
To confirm Lauri's answer, it's definitely Javascript hiding the submit button. When you disable Javascript the button appears normally. I'd be taking a hard look at the line above too.
Wireblue
+2  A: 
$("#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!

Mike Sherov