开发者

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

开发者 https://www.devze.com 2023-04-12 11:11 出处:网络
is it possible to make a jquery/javascript call like <span onclick=\"$(\'#dialog-2\').html($.get(\'http://url.com\');\">Info</span>

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

精彩评论

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

关注公众号