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 Link to comment https://forums.phpfreaks.com/topic/118257-solved-submit-button/ Share on other sites More sharing options...
ainoy31 Posted August 5, 2008 Share Posted August 5, 2008 Please post your code for review. Link to comment https://forums.phpfreaks.com/topic/118257-solved-submit-button/#findComment-608601 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 Link to comment https://forums.phpfreaks.com/topic/118257-solved-submit-button/#findComment-608602 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.