#8900 closed bug (wontfix)
.attr and IE
Reported by: | 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 follow-up: 2 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Resolution: | → wontfix |
Status: | new → closed |
comment:2 Changed 12 years ago by
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!
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.