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
>

Reply via email to