Disbale button after clicked

Discussion in 'JavaScript' started by raymond222, Jun 22, 2008.

  1. #1
    How can I disable a button after it's clicked?
    I know it can be done with js, but i have used onClick atribute already to play sound.

    Thanks!
     
    raymond222, Jun 22, 2008 IP
  2. rohan_shenoy

    rohan_shenoy Active Member

    Messages:
    441
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    you can use more than 1functions foronclick:
    eg
    
    <span onclick="alert("alert 1"); alert("alert 3");">CLICK ME</span>
    
    Code (markup):
     
    rohan_shenoy, Jun 22, 2008 IP
    viitols likes this.
  3. raymond222

    raymond222 Active Member

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Thanks mate, it helped!
     
    raymond222, Jun 22, 2008 IP