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>
精彩评论