Is this an easy way of code so that we do not consistently include numbers? Maybe only the first and the last.
& lt; Script & gt; $ (Document) .ready (function () {$ ("# 001, # 002, # 003, # 004, # 005, # 006, # 007, # 008, # 009, # 010, # 011, # 012, # 013, # 014, # 015, # 016, # 017, # 018, # 019, # 020, # 021, # 022, # 023, # 024, # 025, # 026, # 027, # 028, # 029 , "). CSS (" display "," none ");)); & Lt; / Script & gt;
All these elements will be the easiest way to assign a class
Then
$ ('. MyClass'). CSS ('Display', 'None') The work will be completed.
Otherwise you will have to use a reggae to capture them.
A simple regex
$ ('span') is. Filter (function () {returns / [0- 9] + /. Test (this.id);}). AddClass ('a') These all assume duration elements.
No comments:
Post a Comment