• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
preg_replace / regex - add attributes to link question

#3
[eluser]BobbyB[/eluser]
Hi,
you are probably right.
Thanks for sharing.
For Mootools 1.2
Code:
var links_ = $$('a.twitter_news_links');
         links_.each(function(el){
            el.addClass('tips_news');
            el.set('term',el.get('href'));
                    
                      })
Would still be interesting to see a php based solution for this.
Thanks


Messages In This Thread
preg_replace / regex - add attributes to link question - by El Forum - 03-25-2010, 12:33 PM
preg_replace / regex - add attributes to link question - by El Forum - 03-25-2010, 12:57 PM
preg_replace / regex - add attributes to link question - by El Forum - 03-25-2010, 01:06 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.