This code at this moment prependTo to a static id. But I need to get it to
use something like this 
$(this).parents('.review_blocks').find('.review_list2:first')

However no matter what I do, I can not get ajaxForm to hold a var like 

sort like this 
        $('.new_review').ajaxForm(function() {
 var up_id = $(this).attr("id");
var update_id = '#review_206';
var update_id = '#review_'+up_id;
});

In fact if I add in function() to ajaxForm( it totaly ignores the function
name passed to it. Or callbacks. 


Below is what I have for now. 


 options = {    success: addToReviewList };
$('form.new_review').ajaxForm(options);


function addToReviewList(responseText){
        console.log("rrrrrrrrrrrrrrrrrr");
        $(responseText).prependTo("#review_206").effect("highlight", {}, 9000);
}


-- 
View this message in context: 
http://www.nabble.com/trying-to-get-ajaxForm-to-use-a-dynamic-class-or-id-to-prependTo-tp20135944s27240p20135944.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to