Help with Jquery function

Posted by Madhur Ahuja on Stack Overflow See other posts from Stack Overflow or by Madhur Ahuja
Published on 2010-12-27T13:14:54Z Indexed on 2010/12/27 13:54 UTC
Read the original article Hit count: 208

Filed under:
|

Ok, Here is my problem:

I have this function in a third party javascript library defined as RedirectLink(a,b,c,d,e) where a,b,c,d,e are strings.

I also have a link in my webSite which is again autogenerated (And I can't change it)

<a href="javascript: RedirectLink("1", "2", "3" ,"4" ,"5")" id="mylink" >

What I need to do is, read this anchor's (mylink) href and I need to call RedirectLink function such as javascript: RedirectLink("1", "2", "3" + param, "4" , "5"). where param will come from query string.

The first part is easy, reading the href but how to alter the third parameter ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery