Results 1 to 2 of 2

Thread: Onclick or OnChange

  1. #1
    Join Date
    Jul 2010

    Question Onclick or OnChange

    I need help with this guys. I couldn't make it work with this function.

    wht i want to make it work is whatever I select location_001 or _002 or ect, another menue appear.

    function changeme(id, action) {
    if (action=="hide") {
    document.getElementById(id).style.display = "none";
    } else {
    document.getElementById(id).style.display = "block";

    <select name="select" id="select">
    <option onclick="if(document.getElementById('select2').style.display=='block')
    else {document.getElementById('select2').style.display='block';}">location_002</option>

    <select name="select2" id="select2" style="display:block">

    <select name="select3" id="select3" style="display:block">

  2. #2
    Join Date
    May 2003
    Between Baltimore and DC
    change and check the value. If the value equals the values to trigger the menu, than call your function.

    Tech Author [Ajax In Action, JavaScript: Visual Blueprint] | twitter | linkedin | http://www.pascarello.com

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