Your Ad Here

Posted By

krisdb on 03/09/07


Tagged

javascript


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


selectedIndex


 / Published in: JavaScript
 

  1. function Check() {
  2. var frm = document.Frm.field;
  3. var selectedOption = frm.selectedIndex;
  4. var selectedValue = frm.options[selectedOption].value;
  5. var selectedText = frm.options[selectedOption].text;
  6.  
  7. }

Report this snippet  

You need to login to post a comment.