Skip to main content

Bug Tracker

Side navigation

#4362 closed bug (duplicate)

Opened March 17, 2009 06:51AM UTC

Closed June 20, 2010 08:21PM UTC

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.

Attachments (0)
Change History (2)

Changed August 09, 2009 01:41AM UTC by dmethvin comment:1

component: unfilledcore
priority: majorminor

Changed June 20, 2010 08:21PM UTC by dmethvin comment:2

resolution: → duplicate
status: newclosed

Dup of #3104.