jQuery check .hasClass('[class*="myclass-"]'); -


मेरे पास एक वर्ग की कक्षाएं शुरू होती हैं, जैसे myclass-s1 , myclass-b10 , myclass-ss1 आदि। क्या jQuery के क्लास की जांच है अगर क्लास का नाम 'myclass-'?

आप

  का उपयोग कर सकते हैं ($ ('div')। है ('[class ^ = myclass]')) {// अपने सामान यहां हैं }    

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -