What is the proper jQuery syntax for selecting specific file types?
eg.
$("#fragment-1 a[SELECT ONLY ANCHOR TAGS WITH FILE TYPE OF MP3]").hide();
Thank.
Try the attribute substitution selector :
#fragment-1 a[href$=".mp3"]
a[href$=".mp3"]will select only those elements awhose attribute value hrefends with .mp3.
a[href$=".mp3"]
a
href
.mp3
This should work
$("#fragment-1 a[href$=.mp3]").hide();
Link: http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#selectors
Source: https://habr.com/ru/post/1737032/More articles:Serialization through the J2ME or BlackBerry API - serializationUsing the xsl: variable in an xsl: foreach select expression - variablesAllow user to add directions on map (google maps API) - javascriptΠ€ΠΎΡΠΌΠ° Symfony i18n ΠΈ add_empty - symfony1Html.BeginForm PUT - asp.net-mvcC ++ Offset Bits - c ++Where to draw the line between efficiency and practicality - htmlASP.NET CSV Excel problem with strange characters - c #How to stop property values ββfrom an element tree stream in xaml? - compositionRails: Ruby debugger shows old code if I don't stop the server and start it again - listAll Articles