开发者

Alert return data in jQuery - ajax

开发者 https://www.devze.com 2023-03-10 06:22 出处:网络
I have a php file, process.php which return a number pattern depending on the input string, from $_开发者_运维技巧POST["name"]. I want to alert the return number using jQuery.

I have a php file, process.php which return a number pattern depending on the input string, from $_开发者_运维技巧POST["name"]. I want to alert the return number using jQuery.

How can I do this?


How about

$.post('/process.php', { input: 'your input' }, function(data) {
    alert(data);
}, 'text');
0

精彩评论

暂无评论...
验证码 换一张
取 消