Posted By

amandalaine on 07/13/11


Tagged

javascript if else statement


Versions (?)

If Else If Else


 / Published in: JavaScript
 

  1. if (tab_selected == 0) {
  2. $("td#leftNav").height(tab1 + extra_height)
  3. alert(tab_selected)
  4. return false
  5. } else if (tab_selected == 1)
  6. {
  7. $("td#leftNav").height(tab2 + extra_height + 10)
  8. alert(tab_selected)
  9. return false
  10. }
  11. else
  12. {
  13. $("td#leftNav").height(tab3 + extra_height + 50)
  14. alert(tab_selected)
  15. return false
  16. }

Report this snippet  

You need to login to post a comment.