Bilal Adlial Awan Bilal Adlial Awan - 1 year ago 53
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.

Answer Source

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

Try this :

$(window).load(function() {
    $('#choice_1_10_3_1').attr('checked', true);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download