开发者

jQuery/jQuery UI/ Javascript "live" get() in HTML

is it possible to make a jquery/javascript call like

<span onclick="$('#dialog-2').html($.get('http://url.com');">Info</span>

direct fr开发者_StackOverflow中文版om html code ?

i would like to get the content from a url direkt in code - into a current opened dialog box (http://jqueryui.com/demos/dialog/)

Regards


Check out the load()function: http://api.jquery.com/load/

<span onClick="$('#dialog-2').load('http://url.com')">Info</span>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜