javascript - jQuery selector all ids that are integer -


How do I select all the IDs that are integers?

For example

  & lt; Div id = "1" & gt; & Lt; / Div & gt; & Lt; Div id = "2" & gt; & Lt; / Div & gt; & Lt; Div id = "3" & gt; & Lt; / Div & gt;  

Something [ID ^ = "Integer"] ?

I know that there is a way to choose an ID that is starting the same name:

[id = "same_"] < / Div>

  $ ('[id]'). Filter (function () (return! IsNaN ((this.id) [0]) & amp; this.id.indexOf ('.') === -1;}). CSS ('color', 'red');  


Comments