Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Can’t target form with JavaScript

$
0
0

Replies: 0

Hi,

I’m using Forminator to create some easy booking forms. In order to make them more user friendly I’ve created some CSS classes that applies to elements when selected or changed. I’ll make an example:

I have a 2 option radio button and styled it as a toggle where the selected option is highlighted. When user selects second options the toggle slides to right highlighting the selected option.

In order to achieve this I have to assign CSS classes by jQuery but it seems that nothing happens.
When using change() function to check if radio changed, or even the click() function, nothing happens. Tried different ways but seems like js/jQuery can’t even target the form elements.


Viewing all articles
Browse latest Browse all 59525

Trending Articles