code_junkie

expand collapse html field Firefox

Nov 13th, 2011
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. // hiding without jQuery
  2. document.getElementById('myInput').style.display = 'none'
  3. // showing without jQuery
  4. document.getElementById('myInput').style.display = 'block'
  5.  
  6. // hiding with jQuery
  7. $('#myInput').hide()
  8. // showing with jQuery
  9. $('#myInput').show()
Add Comment
Please, Sign In to add comment