-
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>location_001</option>
<option onclick="if(document.getElementById('select2').style.display=='block')
{
else {document.getElementById('select2').style.display='block';}">location_002</option>
<option>location_003</option>
<option>location_004</option>
</select>
<select name="select2" id="select2" style="display:block">
<option>area_001</option>
<option>area_002</option>
<option>area_003</option>
<option>area_004</option>
</select>
<select name="select3" id="select3" style="display:block">
<option>zone_001</option>
<option>zone_002</option>
<option>zone_003</option>
<option>zone_004</option>
</select>
-
change and check the value. If the value equals the values to trigger the menu, than call your function.
Eric
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
Forum Rules
|
|
Bookmarks