Question: I need to add alert function to my code, If there are any input controls that have not been populated, you will display a warning
I need to add alert function to my code, If there are any input controls that have not been populated, you will display a warning message to the user. No story will be display. The warning message can be displayed via alert() function., Thanks
function generateMadLib() {
debugger;
//Declaring and Initializing variables
var car = "";
var Name ="";
var color ="";
var transmission ="";
var menuItem1 = "";
var theSelect;
var choice = 0;
var theOption;
var story = "";
/*
Retrieving Name
document.madLibForm.txtName
-- madLibForm matches the name of the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
