The following snippets are not equivalent, what am I doing wrong?
This one does not actually show the div
- $('#edit_div').css.visibility= 'visible';
whereas this one does.
- var div = document.getElementById('edit_div');
- div.style.visibility="visible";
The div is defined like:
- <div id="edit_div" style="visibility:hidden;">
- $('#edit_div').show();
doesn't work either.