javascript - Show popup with selections -
i new javascript/jquery. when page loads, show popup user select country. should this: enter image description here upon selection of “united states”, should this: enter image description here there 2 selections: “united states” , “canada”. upon selection of “united states”, show drop-down list containing list of states. upon selection of “canada” or state, close popup. just go through code. can open model window on document.ready method in jquery method triggers when html page ready. can show state dropdown if country selected in change event of country dropdown. can append options selected country inside change event of dropdown. $("#cntry").change(function(){ if(this.value!="select country") { $('#state').find('option').remove().end().append('<option value="select state">select state</option>'); if(this.value=="united states") { $("