Different issues: $('[value=""]') also works in 1.3, but not in 1.3.1.
$('[value=]') as in ticket #3933 works in 1.2.6, 1.3 and 1.3.1 in the following test: http://jquery.nodnod.net/cases/77 It's probably related to the [attribute!=anything] fix landed on 1.3.1: http://groups.google.com/group/jquery-en/browse_thread/thread/d70d3f31b892dc1e/9111f5f8e230211e $('input:not([value])') will return all elements which don't have the 'value' attribute or where it is empty. - ricardo On Jan 27, 8:12 pm, Hector Virgen <djvir...@gmail.com> wrote: > Nevermind, I just found the bug report for this: > > http://dev.jquery.com/ticket/3933 > > -Hector > > On Tue, Jan 27, 2009 at 2:04 PM, Hector Virgen <djvir...@gmail.com> wrote: > > Hello, > > > I just updated to jQuery 1.3 and I am having trouble with the following > > selector: > > > var options = $('option[value=""]'); > > > Firebug says: > > > [Exception... "'Syntax error, unrecognized expression: value=""]' when > > calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e > > (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] > > > This selector used to work in jQuery 1.2 and I need to know how I can > > re-write the selector to be 1.3-compatible. > > > The HTML snippet looks something like this: > > > <select> > > *<option value="">Select One</option>* > > <option value="foo">Foo</option> > > <option value="bar">Bar</option> > > </select> > > > I need to select the option that doesn't have a value and I'd like to avoid > > using class names. Any suggestions? > > > -Hector