Bug Tracker

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:


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>


<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 dmethvin

Component: unfilledcore
Priority: majorminor

comment:2 Changed 13 years ago by dmethvin

Resolution: duplicate
Status: newclosed

Dup of #3104.

Note: See TracTickets for help on using tickets.