attr « internet explorer « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » internet explorer » attr 

1. jquery attr() function speed in Internet Explorer    stackoverflow.com

I have some HTML drop-down menus, and then dependent upon the selection I then highlight the appropriate column heading in a table. I do this by changing the css class of ...

2. Why does Jquery .attr() not work on my object in IE 7 / 8?    stackoverflow.com

I have this very peculiar IE issue where the .attr() function will not select anything.

var tabID = $(selectedTab).attr('id');
selectedTab is a variable passed from an onclick method of a div like below:
<div ...

3. jQuery .attr() not working in IE    stackoverflow.com

I am working with some simple jQuery to add onfocus/onblur events to a generated form. The following code works in other browsers, except IE7/8:

$(document).ready(function(){
   $("input#edit-submitted-first-name").attr('onfocus', "if(this.value=='First Name') this.value = ...

4. Jquery attr function does not work in IE7    stackoverflow.com

I am using jQuery 1.3.2, It seems the attr function does work in IE8 and FF 3 but not in IE7. The problematic code:

.attr("disabled",true)
or
 .attr("disabled","disabled")
Is there an alternative way to disable ...

5. jQuery .attr not working in IE6 & IE7    stackoverflow.com

The javascript code below is about half way on my php page, I can't directly modify the radio buttons with IDs q_251_789 and q_251_790 on my page unfortunately, hence why I'm ...

6. `attr('checked', false)` not working on IE6    stackoverflow.com

As the title says, I can't get .attr('checked', false) to work on IE6. I am cloning some HTML and then before I assign the newly cloned HTML to a element, I ...

7. jquery and data-attr not working in ie8    stackoverflow.com

This concerns a table where I show 5 rows at a time. The follow code is working 100 percent perfect in firefox. But in ie8, only the top row can be clicked for ...

8. Jquery change Contenteditable attr IE    stackoverflow.com

I have the following short code to create a div when button is clicked, inside the div is a span tag with contenteditable="false". When span is doubled clicked, it should set ...

9. Can't select unknown attr's with jQuery in IE7    stackoverflow.com

Each time i try to select a div element with the following selector:

div#wl-add-position-steps div[data-step="1"] 
IE7 can't update the returned object.
jQuery('div#wl-add-position-steps div[data-step="1"]').hide();
jQuery('div#wl-add-position-steps div[data-step="2"]').show();
HTML:
<div id="wl-add-position" style="display:none;">
    <div class="wl-description">
   ...

10. jquery .attr() not working in IE7. Any work around to get the class of the element?    stackoverflow.com

I am having this code to check if the element has the certain class:

var p3div = $("#portlet1 #showhide");
            if ...

11. jQuery attr() not returning in IE7    stackoverflow.com

This one has me stumped. I'm using the "for" attribute on some links to identify the element they're supposed to act on. Everything seems to be working just fine ...

12. Alternative for jQuery attr() in IE?    stackoverflow.com

Ok, correct me if I'm wrong, but I take it that jQuery attr() does NOT work in IE. (marked wontfix) That being the case, what is the best alternative? ...

13. IE .attr disabled does not work    stackoverflow.com

I have a function that would check if the product is available overnight - but it's not working in IE. It works fine in other browsers.

function checkOvernight() {
    ...

14. Get a relative path with jquery .attr() property with IE7    stackoverflow.com

This code gets the path in all browsers - except ie7, when it returns the full url

$(selector).attr('href');
How do I adapt this code to always return the path?
/foo/bar/x.html
not
http://www.sample.com/foo/bar/x.html

15. jquery attr not working in ie8    stackoverflow.com

Can someone help me figure out why the code here is not working? I am pretty sure it has something to do with the .attr: http://jsfiddle.net/nBcrY/1/

16. Set attr error in IE 8    forum.jquery.com

19. Internet Explorer Issue with attr()    forum.jquery.com

This should be easy but for some reason no matter which iteration I try I cannot seem to get this to work properly..A select box controls whether or not a table row is being displayed. function doChange() { if($("#reporttype option:selected").text() == 'Coach') { ...

20. attr doesn work with IE7    forum.jquery.com

22. [jQuery] jQuery - attr method - Error Object required - Only in IE8    forum.jquery.com

[jQuery] jQuery - attr method - Error Object required - Only in IE8 in Using jQuery 2 years ago hi,hi,Could any one help me with this,i am using jquery version - jQuery 1.1.3.1, there is a module to setsome valuesso when i click on the submit button i get the following error (onlyin ie8)[[Webpage error details]]User ...

23. [jQuery] Strange .attr('src') behavior in IE    forum.jquery.com

I have a hover script that implements image rollovers that goes likethis:$(document).ready(function() { $("img.rollover").hover(function() { $(this).attr("src", $(this).attr("src").split(".").join("-hover.")); }, function() { $(this).attr("src", $(this).attr("src").split("-hover.").join(".")); });});This works great in all browsers--I just use a class="rollover" on the and name the rollover image with a "-hover" before theextension.Oddly, in IE6/7, when I jQuery "load" a

with new elementsand reapply the hover function to ...

24. Bug? attr(name) return false in IE8    forum.jquery.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.