Skip to main content

Bug Tracker

Side navigation

#13995 closed bug (notabug)

Opened June 05, 2013 09:21PM UTC

Closed June 06, 2013 01:07AM UTC

selectboxes without selected value not found

Reported by: programmer@bardware.de Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:
Description

I want to find Selectboxes with a selected option

I use: $('select[value!="0"]')

This worked in older versions but not in jQuery 1.9.1 or 1.10.1

fiddle related

an alert appears with the number of fount selectboxes:

I select no option and click the DIV - jQuery 1.7.7 returns 0 http://jsfiddle.net/QesEY/1/

I switch to jQuery 1.10.1 and select no option - jQuery finds one box http://jsfiddle.net/QesEY/2/

Attachments (0)
Change History (1)

Changed June 06, 2013 01:07AM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

The current behavior is correct. There is no value attribute on the select, although there is a value **property**. CSS attribute selectors always should look at the attribute only. Here is a clearer example: http://jsfiddle.net/QesEY/4/