Bug Tracker

Opened 11 years ago

Closed 9 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 10 years ago by dmethvin

Component: unfilledcore
Priority: majorminor

comment:2 Changed 9 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Dup of #3104.

Note: See TracTickets for help on using tickets.