Skip Navigation

[Résolu] Views Radio Buttons generating invalid HTML

This support ticket is created Il y a 4 années et 4 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Marqué : ,

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Minesh Il y a 4 années et 4 mois.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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/
=> lien caché

Please let me know if you will require further assistance.