开发者

Call webservice which has HTML type of data by using Jquery

开发者 https://www.devze.com 2023-03-29 07:08 出处:网络
I am new to jquery. I have created web service which returns HTML data. Eg. It returns<div>TestData</div>.

I am new to jquery.

I have created web service which returns HTML data. Eg. It returns <div>TestData</div>.

I want to call t开发者_开发百科his web service by using jquery.

Thanks for your help.


Say you have HTML like this:

<div id='result'></div>

then you can load your web service's HTML content into it like this:

$('#result').load('/webservice/service.php');
0

精彩评论

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

关注公众号