your javascript only does an Ajax call to the calculate action on document load. also the calculate action doesn't do anything. you probably wanted the Ajax call inside the change handler. but then the server does nothing with it anyway.
@Html.RadioButtonFor click event not firing(change event works)
There are two problems currently I am stuck and appreciate any help on fixing I’m doing wrong :
(1) Very 1st time when I click the second radio button (value 2) and select the checkbox, it forces back to 1st checkbox and does no selection or no update to database. However if I try for the 2nd time onwards, all checkboxes and radio buttons maintain accurately.
(2) Radio button change event is working perfectly fine (show or hide div box). However I also want to enable click event for the radio button because, I want to perform “Reset checkbox values” when 1st radio button is selected back. The event is firing alternate scenarios. Example: if checkbox has values with 2nd radio button selected and then click 1st radio, it does not fires, if no checkbox selected and it fires to first radio button. I want to postback radio button selection on every click/change radio button event to controller. What is that I am doing wrong?
Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET .NET Runtime
Developer technologies ASP.NET Other
Developer technologies C#
1 answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2022-04-18T15:07:25.043+00:00