Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    anu
    anu is offline
    New Coder
    Join Date
    Jan 2006
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    which button clicked?

    hi
    in a PHP page, i have a list of buttons (say 40). when the user click a button, each button will have a different task. i named the button like an array eg: btn1, btn2...btn40. now when the user click the btn40, how can i know using javascript that the user has clicked the button 40?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,853
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Can't you pass that value in the onclick of your button?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    48
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

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