Do not mix CSS/JQuery syntax (#
for identifier) with native JS.
Native JS solution:
document.getElementById("_1234").checked = true;
JQuery solution:
$("#_1234").prop("checked", true);
More Related Contents:
- How can I know which radio button is selected via jQuery?
- How to get the selected radio button’s value?
- How to get value of selected radio button?
- Can you style an html radio button to look like a checkbox?
- In jQuery, how do I select an element by its name attribute?
- jQuery $(“#radioButton”).change(…) not firing during de-selection
- How to make a radio button unchecked by clicking it?
- How to get the value of a selected radio button
- How can select specific text value from <select> <option…? [closed]
- How to detect Ctrl+V, Ctrl+C using JavaScript?
- Jquery load() only working in firefox?
- Play an audio file using jQuery when a button is clicked
- Get element at specified position – JavaScript
- AngularJS – ng-disabled not working for Anchor tag
- How to get the HTML for a DOM element in javascript
- HTML5 Drag and Drop anywhere on the screen
- Avoid window jump to top when clicking #-links
- HTML5 / Javascript – DataURL to Blob & Blob to DataURL
- How to build simple tabs with jQuery?
- HTML5 canvas drawImage with at an angle
- Is it possible to append a div inside an SVG element? [duplicate]
- Change HTML form ‘input’ type by JavaScript
- How to scale an imageData in HTML canvas?
- How can I get all a form’s values that would be submitted without submitting [duplicate]
- how to get the base url in javascript
- Can I prevent phone from sleep on a webpage
- how to set content-disposition = attachment via javascript?
- Close a SELECT dropdown list programmatically with Javascript/jQuery
- Removing backslashes from strings in javascript
- Possible to reverse a css animation on class removal?