Hi All,
we need to trigger the radio button event in page _load using javascript automatically without any manual interaction. Can anyone suggest with example?
Thanks
Karthik. k
Hi All,
we need to trigger the radio button event in page _load using javascript automatically without any manual interaction. Can anyone suggest with example?
Thanks
Karthik. k
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satya KarkiPosted Sep 26, 2022, 9:04 AM
Try this
Uday DodiyaPosted Sep 26, 2022, 11:29 AM
Hi Karthik,
Try Following
Html Code
Java Script
Reference : http://jsfiddle.net/tVRrb/
Rijwan AnsariPosted Sep 26, 2022, 9:02 AM
Hi,
I am not sure about the question. Generally, the radio button event is either click or change, which you can do in JavaScript. However, you can trigger event page load as shown:
Change Event
Click Event
Sachin SinghPosted Sep 26, 2022, 8:54 AM
You can trigger the click event because change event won't work for initial load