Skip Navigation

[Resolved] Views Radio Buttons generating invalid HTML

This support ticket is created 4 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1727619

Using the radio button filter makes it impossible to style for checked and non-checked as it wraps the radio inside the label. I tried using jQuery but something resets the class I try adding right after the check. my guess something to do with the Ajax request.

Is there any way I can convince views to display the input element outside of the frikkin label? This is becoming increasingly problematic as I am trying to build more advanced interfaces using WP Views.

Thank you
A.

#1727947

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

If you can share problem URL and share problem details I would like to check and what class you want to apply to radio buttons.

Actually, Views offers the ajax hooks using which you can add custom JS based on view's AJAX events. Please check the following doc:
=> https://toolset.com/documentation/programmer-reference/adding-custom-javascript-code-to-views-that-use-ajax/
=> hidden link

Please let me know if you will require further assistance.