Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. html += '<tr id="product_row_scheduled_'+key+'">';
  2. html += '<td class="title">'+image_path+' '+product_row.title+'</td>';
  3. html += '<td class="text-center" id="sch_product_posted_'+key+'"> '+product_row.user_set_time+'</td>';
  4. html += '<td class="text-center"><a href="#" id="schedule_'+key+'" onClick="schedule_product(''+key+'',''+product_row.title+'',''+product_row.user_set_time+'')"> Schedule</a></td>';
  5. html += '<td class="text-center"><a href="#" onClick="cancel_schedule(''+key+'')"> Cancel</a></td>';
  6. html += '</tr>';
  7.  
  8. $('#product_row_scheduled_'+key).on('change', '.product_posted_'+key+'',function(){
  9. console.log($('.product_posted_'+key+'').html());
  10. });
  11.  
  12. $('#product_row_scheduled_'+key).on('change', '#sch_product_posted_'+key,function(){
  13. // ----------^ # in place of .
  14. console.log($(this).html());// use this here
  15. });
  16.  
  17. $(document).on('change', '.sch_product_posted',function(){
  18. console.log($(this).html());
  19. });
  20.  
  21. $(document).on('DOMSubtreeModified','.sch_product_posted', function(event){
  22. console.log('Html: '+$(this).html());
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement