When I press submit, and in the python use requests.get_data(), it returns Js=on, irrespective of which radio button has been selected. If I make the id the same as name then it works like a checkbox, returningthe correct values... But, it is not then a radio group and you can select more than one.
I am using htmx and want my code to be able to retrieve the value of a set item in a radio group. Here is the htmx that I am trying to use:
When I press
submit
, and in the python userequests.get_data()
, it returnsJs=on
, irrespective of which radio button has been selected. If I make theid
the same asname
then it works like a checkbox, returningthe correct values... But, it is not then a radio group and you can select more than one.What could be going on here?