Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#8900 closed bug (wontfix)

.attr and IE

Reported by: ilya.iz@… Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

Description

JQuery function .attr does not works under IE, when attribute is event like .attr("onchange","alert('Hello event onchange!')"); . It is because IE does not understand this. You can check, if attribute is event, make eval function if IE.

Change History (2)

comment:1 Changed 9 years ago by timmywil

Component: unfiledevent
Priority: undecidedlow
Resolution: wontfix
Status: newclosed

There are many issues under the surface that jQuery deals with in its event module. Please use .change to attach change events. For a full list of events and how to use them, see http://api.jquery.com/category/events/. Concerning the issue with attr, I don't think this is something we want to tackle.

comment:2 in reply to:  1 Changed 9 years ago by anonymous

Replying to timmywil:

There are many issues under the surface that jQuery deals with in its event module. Please use .change to attach change events. For a full list of events and how to use them, see http://api.jquery.com/category/events/. Concerning the issue with attr, I don't think this is something we want to tackle.

Sometime, i need insert in attribute event, without JQuery.change function! And it is normal, when users insert into event's attributes javascript code!

Note: See TracTickets for help on using tickets.