javascript - How to show alert message if I hit Submit button directly and need to show json object after clicking for input types and then Submit? -


i wanted show 1 alert message if click directly submit button instead of clicking <input type="checkbox"> directly only. have tried @ fiddle, getting alert message every time (that if directly click submit button - showing alert message , after clicking of <input type-"checkbox"> , hitting submit button - showing alert message, time need show json object on console, not alert message).


Comments