You need to use the tabs url method to change the url to load the
content from:

var newUrl = "tabs1.php?id=" + $id;
$("#mytabs").tabs("url", 0, newUrl);

http://docs.jquery.com/UI/Tabs#method-url


--Klaus


On 30 Mrz., 17:37, ben <[email protected]> wrote:
> Hi,
>
> I would like to know how to modify the href of a Jquery Tab in a
> javascript code
>
> <div id="mytabs">
>      <ul>
>          <li><a  href="tabs1.php" class="linkToModify" ><span>Tabs1</
> span></a></li>
>          <li><a  href="tabs2.php"><span>Tabs2</span></a></li>
>          <li><a  href="tabs3.php"><span>Tabs3</span></a></li>
>      </ul>
> </div>
>
> When i click on a button, it calls a method containing :
>
> var newUrl = "tabs1.php?id=" + $id;
> $("a.linkToModify").attr("href", newUrl);
>
> It seems to works 'cause it really change the href on the first tabs,
> not in ajax mode (I'm not in the same page anymore).
>
> Any help please ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to