Tag ajax

[Solved] Validation Form with PHP or Javascript [closed]

if the visitor fills out a field phone then allowed only enter numbers. and if the visitor fills out a field phone then allowed only enter email. Check this out function validateForm(){ var x = document.getElementById(‘name’); var email = document.getElementById(’email’);…

[Solved] What would be the $.ajax equivalent to this $.getJSON

Its clear in Official Docs jQuery.getJSON() $.ajax({ dataType: “json”, url: “”, data: {sessionId: 1}, success: function(data) { alert(“Success!!! yay”); peopleList = data; jsonIsLoaded();//output your data to console } }); 1 solved What would be the $.ajax equivalent to this $.getJSON