Hello, I am newbie to Jquery, i need help for the following, When i use $(".rateit").click(function(){ $(this).next(".rateoptions").html('My options data here'); }); Code (markup): It works smoothly, But when I use this in a callback function it doesn't work as follow; $(".rateit").click(function(){ $.get("test.php", function(data){ $(this).next(".rateoptions").html(data); }); }); Code (markup): I will be thankful for your help regarding this fix.
OK, It's solved now, some one on jquery forum helped me out, following is the link http://forum.jquery.com/topic/jquery-next-not-working-when-using-in-get-callback-function