jquery - Get a php file and show contents on hover -
when hovers on div.lol want show contents within profile.php on div.sdf
$(document).ready(function(){ $('.lol').hover(function(){ $(this).parent().next().find('.sdf').get('profile.php'); },function(){ $(this).parent().next().find('.sdf').get(); }) }); i tried nil loads.
here jfiddle http://jsfiddle.net/csbvw/93/
you using get method wrong. here documentation of get. way used get makes phone call this function. utilize ajax get method retrieve info server , inject result dom element want displayed in.
jquery
No comments:
Post a Comment