Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] enable select onClick


  • From: peter at brunone.com (Peter Brunone)
  • Subject: [Javascript] enable select onClick
  • Date: Tue Jun 28 09:48:41 2005

Michael,

???Probably something like this:

<input type="checkbox" onclick="checkSelect(this)" ...

<select name="mySelect" id="mySelect" ...

<script language="Javascript">
function checkSelect(myCheck) {
???if(myCheck.checked) {?
??????mySelect.disabled = false;
??????mySelect.focus();
??????}
???else {
??????mySelect.disabled = true;
??????}
???}
</script>

 From: "Michael Borchers" borchers@xxxxxxxxx

i have a checkbox and a disabled select menu
when the checkbox is clicked the select menu should
be enabled and focused.
howto?

thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050628/e7d1b812/attachment.html