jQuery hide/show doesn't seem to work - am I doing something wrong
button, click, css, jquery
Solution
Three steps:
- Try to change show("") to show()
- Check the selector work correct e.g. no object id 'object-created-panel'
- Use Firebug to detect the javascript error
http://getfirebug.com/
Problem
I am trying to show an element (which is a table, but I am using it as a div) when a submit button is clicked. It doesn't seem to work. And I don't think that's because of bad CSS Karma acquired by using tables for layout. Code is as follows: ``` $(document).ready(function() { $("#object-created-panel").hide(); $("#create-object-btn").click( function() { $("#object-created-panel").show(""); } ); }); ``` Hopefully that is enough code to show what the error is (if not I will put in the code for the tables as well) the Submit button's id is: create-object-btn