Roar Roar - 1 year ago 75
Javascript Question

HTML5 jQuery select all date fields 'input:date'

Is there a way to select all date inputs?
I have:

<input type="date" name="bday">

all i need it's just to select all inputs.

there are many selectors, but nothing like:


this approach


looks no good

What's the best practice?

Answer Source

If you want something cross browser, you should stick with:


I don't think you can select all inputs of type date in a different way. If however you want to select all text fields you can go with


or if you want all radios you can go with

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download