Re: Can you give me an Idea on this ?
Do you ever do any research before posting? Have you gone through any JavaScript tutorials?
This is a very basic concept. Use the onchange attribute of the dropdown to change the CSS of the other two dropdowns.
Code:
<script type="text/javascript">
function changeDropDown(which) {
if (which == "groups") {
document.getElementById('groups').style.display = "";
document.getElementById('users').style.display = "none";
}
else {
document.getElementById('groups').style.display = "none";
document.getElementById('users').style.display = "";
}
}
</script>
<select onchange="changeDropDown(this.value)">
<option value="groups">Groups</option>
<option value="users">Users</option>
</select>
<select id="groups" style="display: none;">
</select>
<select id="users" style="display: none;">
</select>
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Bookmarks