How can i uncheck all radio button using jquery or javascript?
The radio buttons i want to uncheck begins with the id=favoritepreferred12333 and the name favorite12333 the numbers 12333 can be different on other radio buttons, but they all begin with id=favoritepreferred{number} and the name=favorite{number}
I think i have to use some regex or?
Thanks for the Help
How can i uncheck all radio button using jquery or javascript? The radio buttons
Share
Well you could add a class to your radio buttons and then select it easily with JQuery.
Alternatively you could use JQuery’s attribute-starts-with-selector: