Unix/Linux Go Back    

Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Html java script not working

Web Programming

Thread Tools Search this Thread Display Modes
Old Unix and Linux 07-11-2013
scriptscript scriptscript is offline
Registered User
Join Date: Jan 2013
Last Activity: 25 January 2016, 10:42 PM EST
Posts: 82
Thanks: 24
Thanked 0 Times in 0 Posts
Html java script not working

Could anyone please let me know what went wrong with the below html code ..

<script type="text/javascript">
function check(elem) {
    document.getElementById('mySelect1').disabled = !elem.selectedIndex;
<select id="mySelect" onChange="enable();">
<option onSelect="disable();">No</option>
<option onSelect="enable();">Yes</option>
<select id="mySelect1" disabled="disabled" >

Thanks in advance ...
Sponsored Links
Old Unix and Linux 07-22-2013
blackrageous's Unix or Linux Image
blackrageous blackrageous is offline
Registered User
Join Date: Jul 2013
Last Activity: 12 April 2017, 6:26 PM EDT
Location: Austin, Texas
Posts: 540
Thanks: 13
Thanked 111 Times in 108 Posts
Get a better example

This looks way off. The only function I see is the check function. The actions you're trying to invoke, onchange and onselect of those forms elements aren't defined. Try an internet search for a form that resembles the functions you want to try "Google javascript forms"
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab - runninf a java script just isn't quite working... MrCarter Shell Programming and Scripting 3 07-04-2012 06:17 AM
how to delete certain java script from html files using sed georgi58 Shell Programming and Scripting 2 04-25-2012 01:45 PM
Java plugin not working with Firefox 3 whetphish BSD 1 02-11-2009 05:05 PM

All times are GMT -4. The time now is 12:26 AM.