Categories | Question details Back To List | ||
get value from dhtmlxcombo <script language="javascript1.2" type="text/javascript"> function entlogin() { eoptr=document.form1.eoptr.value; date1=document.form1.date1.value; var ps=document.getelementbyid('combo_zone2).value; alert(ps); } </script> <form name="form1" id="form1" enctype="multipart/form-data" method="post"> <select name="alfa2" id="combo_zone2" style='width:100px;'> <option value=""></option> <option value="9:00 AM">9:00 AM</option> <option value="9:15 AM">9:15 AM</option> <option value="9:30 AM">9:30 AM</option> <option value="9:45 AM">9:45 AM</option> <option value="10:00 AM">10:00 AM</option> <option value="10:15 AM">10:15 AM</option> <option value="10:30 AM">10:30 AM</option> <option value="10:45 AM">10:45 AM</option> <option value="11:00 AM">11:00 AM</option></select> <script> var p=dhtmlXComboFromSelect("combo_zone2"); p.enableFilteringMode(true); </script> <input type="button" name="button" value="Add Entry" class="button1" onClick="entlogin()"> </form> Then error message display is object dosen't suppoty object... Can u help me fopr that...(If i select 9:45 Am then ps value is 9:45 AM) Regards Mayur(India) Answer posted by Support on Jan 10, 2009 08:37 >> var ps=document.getelementbyid('combo_zone2).value; Instead of access by ID you need to use the combo object, created during initialization var ps = p.getActualValue(); |