We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

marcio on 02/06/08


Tagged

javascript ie jquery ie6 hacks


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

martingoldszein


IE Tunning con jquery


Published in: JavaScript 


Funcion javascript para añadir clases a algunos elementos y poder acceder a ellos vía CSS.

  1. function ieTunning(){
  2. $(':text').addClass('text');
  3. $(':submit').addClass('submit');
  4. $(':radio,:checkbox').addClass('radio');
  5. $(':image').addClass('image');
  6. $(':reset').addClass('reset');
  7.  
  8. $('li:first',$('ul')).addClass('first-child');
  9. };

Report this snippet 

You need to login to post a comment.