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
- Prev by Date: [Javascript] Re: Javascript Digest, Vol 28, Issue 18
- Next by Date: [Javascript] How to have the popup menu stay on?
- Previous by thread: [Javascript] enable select onClick
- Next by thread: [Javascript] Re: Javascript Digest, Vol 28, Issue 18
- Index(es):