Advanced Search

Results 1 to 2 of 2

Thread: Changing ahref Link Dynamically

  1. #1
    Join Date
    Dec 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Changing ahref Link Dynamically

    hi,

    I need to change ahref link value dynamically by ajax function call

    like if the status of link before call is
    <a href= "abc()">123</a>

    after function call it should be
    <a href="abc()">536</a>


    thanks

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Code:
    <a href="#" onclick="abc();this.innerHTML='536';return false">123</a>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •