Bilal Adlial Awan Bilal Adlial Awan - 11 months ago 36
HTML Question

Click a radio button automatically on page load

Here is my code


I want to check this radio button when the page load. I could not found error in console but my code is not working.
It is essential for me to do. Any help will be appreciated. Thanks.


The code will be run after the page is fully loaded.

Try this :

$(window).load(function() {
    $('#choice_1_10_3_1').attr('checked', true);