$(document).ready(function(){
$('.completecompanyDetails').click(function(){
var orgname = $("#companyName").val();
var jsonData = {};
jsonData.orgName = orgname;
$.ajax({
url: url,
data:JSON.stringify(jsonData),
type:"text",
method:"POST",
contentType:'application/json',
success: function(data){
window.location.href="/config";
return true;
},
error: function () {
alert("Error!");
return true;
}
});
});
});
我在第 8 行收到以下错误:
Uncaught TypeError: Accessing selectionDirection on an input element that cannot have a selection.