Ell20 Posted August 5, 2008 Share Posted August 5, 2008 Hey, I have a drop down box which has two options in it. When 1 of the options is selected I would like a javascript pop up to display asking for confirmation but on the other option this is not nessecary. I tried a javascript popup on submit, but I couldnt get it to work, can anyone help? Cheers Quote Link to comment Share on other sites More sharing options...
ainoy31 Posted August 5, 2008 Share Posted August 5, 2008 Please post your code for review. Quote Link to comment Share on other sites More sharing options...
niranjnn01 Posted August 5, 2008 Share Posted August 5, 2008 Try this, <select> <option onclick="javascript:alert('hello');"> javascript </option> <option> no javascript </option> </select> Rakesh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.