Can’t target form with JavaScript
-
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 usingchange()
function to check if radio changed, or even theclick()
function, nothing happens. Tried different ways but seems like js/jQuery can’t even target the form elements.
- The topic ‘Can’t target form with JavaScript’ is closed to new replies.