skip to Main Content

If the son is yes then the dropdown from list 1 should come if the son dropdown is no then the drop down from list 2 must come – Jquery ajax

I am setting up a conditional dropdown. <div class="form-group"> <label asp-for="son" class="control-label"></label> <select name="son" id="son"> <option value="none" class="a" selected="selected"> -- choose one --</option> <option>Yes</option> <option>No</option> </select> <span asp-validation-for="son" class="text-danger"></span> </div> Here is the dropdown for son, if it is NO…

VIEW QUESTION

ajax xhr.responseText when result contains @ error uncaught typeerror – Jquery ajax

I do ajax call via new XMLHttpRequest(); when I do this var params = "x="+encodeURIComponent(x); var xhr = new XMLHttpRequest(); xhr.open("POST", "....php", true); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.onreadystatechange = function(e) { if (xhr.readyState == 4) { $("#divID").html(e.currentTarget.responseText); } } xhr.send(params); It is…

VIEW QUESTION
Back To Top
Search