vendredi 8 mai 2015

Jquery, select all element with a class

someone could tell me why this code works correctly on chorme but not on the other browsers?

  $("#"+grid+" tr:nth-of-type(2) td.table_view_tablet").each(function() {
       id = $(this).attr('aria-describedby');
       id = id.split("_");
       jQuery("#"+grid).jqGrid('hideCol', [""+id[2]+""]);
  });

I'want to select all ceil with class "table_view_tablet" in the second line of table "grid"

Aucun commentaire:

Enregistrer un commentaire