jquery, .next() not working when using in $.get callback function
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');
- });
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);
- });
- });
I will be thankful for your help regarding this fix.