It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

transform getElementById to work with class

transform getElementById to work with class

Postby Cajado on Fri Jun 11, 2010 12:50 pm

Hello,
I know nothing about javascript. And I have this script:

Code: Select all
<script type='text/javascript'>
   window.onload = function() {
         para = document.getElementById('my_id').getElementsByTagName('a');
       if(para.length)
           for(index in para){
               para[index].removeAttribute('title');
           }
   }
  </script>


I need it to work by "class" and not "id".
Could someone rewrite it for me? :mrgreen:
Cajado
 
Posts: 1
Joined: Fri Jun 11, 2010 11:17 am

Who is online

Users browsing this forum: No registered users and 9 guests