Skip to content
Advertisement

Tag: forms

How do I change this variable using radio buttons?

Hello I’ve been tearing my hair out over this all last night and this morning, I have a radio button set with 3 options and I have a variable called “Minimum_fare”. I’m trying to write javascript that will set the variable “minimum_fare” to a different number depending on which radio button is selected. I’ve looked at dozens of answers on

Search by post title wordpress without reflesh

I want to create wordpress search by title without refleshing page. New results have to be shown when more than 3 symbols are typed in search. I’ve got input with form: But when I’m typing – value of input is not changing. How can I search posts after typing 3 symbols if I cannot get input.value.length? Also how can I

Form validation – Must contain a specific word from a list

I’m trying to use Javascript to validate an input field to have the specific formatting below: “WORD1,WORD2” So there has to be a comma in between two words, no spaces. WORD1 can be any word, but WORD2 has to be a word from the following list: “USD”, “AUD”, “BTC”, “CAD”, “CHF”, “EUR”, “GBP”, “ETH”, “JPY”, “NZD” If the input field

Changing Values in a Form Causes Lag

I want to change the value of a from once a second, but when i use this code: The tab completely locks up, and I am forced to reload it. I have also tried using document.getElementById(“input”).value = “value”;, but that causes the same thing to happen. Does anyone know how to fix this (the form does not have a name)?

React hook form how to check if mails are equal

I wonder how to check if 2 inputs are equal? I mean I want to do form validation in which I will check if first input is the same as second one. Anyone knows how to do it? If something is unclear feel free to ask 🙂 Answer Its quite simple. you get the values on onSubmit = (data) so

Advertisement