Text after "
.find ('woocommerce-tab.') No ('tab.') HTML.
A section of jQuery used to find a square but .tabs
which is a child of .woocommerce-tab
But still .tabs
appears in that output That's what I do not want.
Example html output
& lt; Div class = "woocommerce-tabs" & gt; & Lt; Ul class = "tabs" & gt; & Lt; Li class = "details_tab active" & gt; & Lt; A href = "# tab-description" & gt; Details & lt; / A & gt; & Lt; / Li & gt; & Lt; Li class = "extra_details_tab" & gt; & Lt; A href = "# tab-additional_details" & gt; Additional Information & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div class = "panel entry-content" id = "tab-description" style = "display: block;" & Gt; & Lt; H2 & gt; Product Details & lt; / H2 & gt; & Lt; Ul & gt; & Lt; Li & gt; Strong & lt; / Li & gt; & Lt; Li & gt; Continuous 360 ° turntable rotation & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Div class = "panel entry-content" id = "tab-additional_information" style = "display: none;" & Gt; & Lt; H2 & gt; Additional Information & lt; / H2 & gt; & Lt; Table class = "store_ights" & gt; & Lt; Tbody & gt; & Lt; Tr class = "" & gt; & Lt; Th & gt; Tires (foamy) & lt; / Th & gt; & Lt; TD & gt; & Lt; P & gt; 16 " & lt; & gt; & lt; p & gt; & lt; / tbody & Gt; & lt; / table & gt; & lt; / div & gt; & lt; / div & gt;
Your code filters elements that do not have the tab
className, it does not exclude the specified element from html output.You .clone ()
element, descendant .html (and then say )
method.
.find ... ('.woocommerce-tab') Clone () ('.tab') Removed () end ();.
Comments
Post a Comment