Opened 14 years ago
Closed 13 years ago
#4362 closed bug (duplicate)
jQuery.val() doesn't work as expected in Konqueror
Reported by: | rico.moorman | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | core | Version: | 1.3.2 |
Keywords: | attributes, val(), value, konqueror | Cc: | |
Blocked by: | Blocking: |
Description
The following code yields a wrong select element value in Konqueror. Obviously the contents of the option elements is taken as value.
"""
<select id="my-select">
<option value="">choose</option> <option value="1">test1</option> <option value="2">test2</option> <option value="3">test3</option>
</select>
<script type="text/javascript"> jQuery(function() {
jQuery('#my-select').change(function() {
alert(jQuery(this).val()); alert(this.value);
});
}); </script>
"""
In all major browsers the call to "val()" yields the correct "value" of the element. In konqueror it yields the contents of the option while accessing the value attribute directly reveils the correct value.
Change History (2)
comment:1 Changed 14 years ago by
Component: | unfilled → core |
---|---|
Priority: | major → minor |
comment:2 Changed 13 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Dup of #3104.