www.webdeveloper.com
Results 1 to 2 of 2

Thread: Execute a function when selected

  1. #1
    Join Date
    Jul 2006
    Posts
    26

    Execute a function when selected

    How can achieve this. For example on this code:

    HTML Code:
    <select name="">
      <option value="test1">test1</option>
      <option value="test2">test2</option>
      <option value="test3">test3</option>
    </select>
    When I select test2 it will trigger a function?

    Please advise..

    Thanks
    Let me know if you need a Custom Bot

  2. #2
    Join Date
    Jan 2011
    Location
    United Kingdom, London
    Posts
    117
    HTML Code:
    <select name="" onchange="iHaveChanged();">
      <option value="test1">test1</option>
      <option value="test2">test2</option>
      <option value="test3">test3</option>
    </select>
    Javascript, jQuery / Prototype & PHP expert ready to complete your work on Freelancer.co.uk - Hire Me at https://www.freelancer.co.uk/users/1...&action=hireme

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles