I have a textbox which is passed to the api….the text entered is stored…
<input type="text" id="name" placeholder="Type something">
The below code works in developer mode of chrome with breakpoints but doesnt work without it…
$("#submit").click(function() {
var name = $('#name').val() ;
var url = "https://www.mariyano.com/app-server/test/?action=add_list&name="+name;
$.ajax({
url: url,
dataType: "jsonp",
});
Actually no idea what’s wrong but here is a working source code: http://jsfiddle.net/HLmsr/
JavaScript
HTML