well right now I have this checkbox that's enabling / disabling a submit button for my form.
I simply have this code for enabling / disabling it
onclick="if(this.checked){this.form.submit_btn.disabled=false}else{this.form.submit_btn.disabled=true};this.blur();"
now I'm just wondering how I can make it so that if they click the button when it's disabled, have it alert them with a certain message.
so add an onclick event to the button and have it be like
if(this.disabled=true){alert('Button disabled!');}
or something similar? I'm pretty new to all the onclick stuff.
Thanks