Home jquery pass ajax response where name is in string variable
Reply: 0

jquery pass ajax response where name is in string variable

Ollio
1#
Ollio Published in 2017-12-06 15:42:57Z

could anyone tell me how to pass the content of the variable id, like in row A, but as a variable in row B? Probably simple but I cant find it. Thx!

jQuery('.filter_group_row_counter').each(function (index, value){

    // output: filter_group_3_row_1_counter
    var id = jQuery(this).attr('id');

    // A this should happen & works well
    //jQuery(this).text(response.filter_group_3_row_1_counter);

    // B this doesnt work 
    //jQuery(this).text(response.id);

});
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.366359 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO