![]() |
[HELP]someone knowledgable in jQuery
so we have a html link
Code:
<a href="http://google.com">Google</a> Code:
return this.each(function(){ but i want to target a link like this Code:
<a href="out.php?link=http://google.com">Google</a> i have tried many ways, and looking at this code the obvious replace has been done replace("out.php?link=http://","").replace("out.php?link=https://", "") im stuck, i set a demo up HERE |
Might be easier to make use of split like this:
HTML Code:
"out.php=?link=http://google.com".split('//')[1] |
did you take a look at the demo dave? i implemented the split but im still not getting the desired results
--------------- Added [DATE]1457553299[/DATE] at [TIME]1457553299[/TIME] --------------- this is the full code Code:
jQuery.fn.favicons = function(config){ |
All times are GMT. The time now is 04:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|