run jquery on each table

Posted by Tommy Arnold on Stack Overflow See other posts from Stack Overflow or by Tommy Arnold
Published on 2011-01-16T00:45:56Z Indexed on 2011/01/16 0:53 UTC
Read the original article Hit count: 160

Filed under:
|
|

Below I have some jQuery that runs through each table with the classname = sizetable

I would like to execute this:

$("#frontshade :radio").click(function() {});

But I'm not sure how to replace the "#frontshade" with the id from the array

  var table_ids = new Array();
  $('.sizetable')
  .each(function(e){
    table_ids[] = $(this).attr('id');
  // JQUERY TO EXECUTE ON EACH TABLE        

  $("#frontshade :radio").click(function() {};

  //

  });

Thanks in advance for any answers

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about arrays