Bug Tracker

Modify

Ticket #8960 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

attribute selector not working for IE 8 option selected attribute after AJAX requests

Reported by: NaZaf Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

$("option [selected]") When I load html content using AJAX that includes a selected option, the attribute selector does not work.

For example

<option selected='selected'>text</option>

Now if I use

$("option[selected]") or $("option [selected]")

In IE8, I get empty result, but it works well in FireFox.

Change History

comment:1 Changed 2 years ago by anonymous

Here is a test case:

 http://jsfiddle.net/kR2ks/1/

comment:2 Changed 2 years ago by timmywil

  • Priority changed from undecided to high
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to selector

comment:3 Changed 2 years ago by timmywil

Duplicate of #7128.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.