ProXy_ Posted October 6, 2009 Share Posted October 6, 2009 i've done some research the past couple days trying to get my new ajax site manager to work with internet explorer. This works great with Firefox. Here is the option tag: <option value="thename" onclick="Go(this.value)">Pick</option> the function: function Go(url) { document.getElementById(url).style.display = ''; } Appreciate the help. I've looked all over the forums for some ideas And i have not stumbled upon any "working" so far. Quote Link to comment https://forums.phpfreaks.com/topic/176679-solved-get-dropdown-value-ieff/ Share on other sites More sharing options...
Psycho Posted October 6, 2009 Share Posted October 6, 2009 The OPTION elements don't appear to support the onclick trigger in IE. If this is a single select list, then you should use the onchange trigger on the SELECT element to get the selected value: <select name="sel" id="sel" onchange="alert(this.value);"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> If this is a multi-select list then it becomes more difficult because I'm not sure you can determine which exact option was clicked. If you use "selectedIndex" on the SELECT element it will give you the first selected elment even if you select another element. Plus, you have to consider that the user may be clicking on an element to unselect it. Quote Link to comment https://forums.phpfreaks.com/topic/176679-solved-get-dropdown-value-ieff/#findComment-931546 Share on other sites More sharing options...
ProXy_ Posted October 6, 2009 Author Share Posted October 6, 2009 Perfect, I appreciate your help. i thought about using the onchange but for some silly reason i never tested with it :/ Thanks again Quote Link to comment https://forums.phpfreaks.com/topic/176679-solved-get-dropdown-value-ieff/#findComment-931579 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.