I am trying to gain the link that is on a certain page of my website per user. I have to use jQuery because I don’t have access to the php. I have a script and it does something lol, just not what I want it to do…Any useful tips and support?
$.get('/profile?mode=editprofile');
var a = $('.subtitle a').html();
$('dl.left a').html(a);
Basically the url is /profile?mode=editprofile and I want to grab the a href from .subtitle a then place it in the dl.left a like I said it does something but not sure. I am not getting a console error or anything.
I’m not positive if I am doing something wrong or if I am writing this wrong.
<div class="main-head">
<div class="subtitle">Registration Information -
<a href="/u1" target="_blank" style="color:#dedfdf;">View my profile</a>
</div>
</div>
As you can see I am trying to grab that /u1 so I can make it work for all pages…The php placeholder the free site gives us will not work on all pages just these pages which are in the profile alone.
You have to retrieve the html from the data returned. Something like this should work.