Dynamically changing the button

Discussion in 'Web Design, HTML And CSS' started by rag84dec, Feb 4, 2008.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    My requirement is to have a button with an initial and onclick it should change to a button with another initial.these button will be taken from a database.
    How can i do this??...i am using ASP ....
     
  2. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    i mean button initial will be taken from the database
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Example:
    HTML:
    <img src="a.gif" onClick="this.src='b.gif';"> <!-- For an image -->
    <input type="button" value="Click Me" onClick="this.value='Clicked';">
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice