I’m having a minor issue. I’ve got the jQuery hide() and show() functions working well on form selection values for normal <div> elements, but I have one <div> element (the first one) with some code that doesn’t display when it’s selected.
Here’s the link for an example: http://www.shmoggo.com/3/diff.html
and here’s the code: http://www.shmoggo.com/3/diff.txt (sorry, it was too long to create a code block)
Any advice at all would be greatly appreciated.
Thanks!
Your
divwithid="1"contains anotherdivwhich is hidden by the generic$('div').hide()call – and not shown again ever after.Also, nesting multiple
$(document).ready()calls is unnecessary.Try this:
Edit: Also, quote @bobince:
You should absolutely listen to that.