empty value of element in IE

n2rpro

New Member
This code in firefox is working. In IE the alert is empty.\[code\]<select id="ronny" name="ronny" onchange="AjaxPost();alert(document.getElementById('ronny').value);"> <option id="selected_ronny">All</option> <?php foreach($d_ronny as $ronny ) { if($ronny == $_POST['ronny_select']) { echo "<option selected id='selected_ronny'>$ronny</option>"; } else { echo "<option>$ronny</option>"; } } ?></select>\[/code\]The options are fox example :\[code\]All\[/code\]\[code\]abc\[/code\]\[code\]123\[/code\]\[code\]xyz\[/code\]When i select \[code\]xyz\[/code\], the alert shows \[code\]xyz\[/code\]. In IE the alert is empty.thank you!
 
Back
Top