jQuery(formElement).val(null) : inconsistent results in different browsers
Posted
by
Shehi
on Stack Overflow
See other posts from Stack Overflow
or by Shehi
Published on 2011-03-12T23:50:23Z
Indexed on
2011/03/13
0:10 UTC
Read the original article
Hit count: 125
Code is here:
Please run it on the latest versions of all browsers, and see for yourself. When the button is clicked, on:
- on Chrome (and Safari of course) it just doesn't select anything, instead creates some ghostly empty option
- on Firefox and Opera, it works the way I expect and want it to work, resets the element value
- on Explorer, it does nothing
So, which one is expected behaviour? Thanks.
© Stack Overflow or respective owner