Wie kann ich Klassen usw. mithilfe einer Variablen direkt auswählen?Funktionen aufrufen, die eine jquery-Variable verwenden
var $tbody = $(".tbl-locations-body");
$(".tbl-locations-body a.collapse").hide();
$(".tbl-locations-body tr.child-row").hide();
$(".tbl-locations-body .container").first().hide();
$(".tbl-locations-body .tab-content").hide();
Ich möchte $tbody
verwenden, um die Verfahren durchzuführen. Was ist die Syntax?
Wäre das $ ('a.collapse', $ tbody) .hide(); ? – FirstByte
ja, sorry, ich werde die Antwort aktualisieren – xszaboj
Bitte fügen Sie eine Erklärung ... –