All Questions
Tagged with event-handling form
20 questions
4
votes
1
answer
545
views
Setting all hidden fields based on id
I am working on a web page where there is a checkbox with a value and a hidden field. I want to ask your opinion on whether this logic is sound.
My logic
The checkbox has a value that matches the id ...
0
votes
1
answer
164
views
Range slider show/hides and reset (vanilla js)
I have a HTML5 range slider. i.e. ...
2
votes
2
answers
455
views
jQuery form.find radio class
In my application we have four inputs that are radio controls and the first radio control is checked by default. When the user selects another radio control and then saves the form I want to get the ...
2
votes
2
answers
12k
views
Form for OTP entry with six single-character text fields
I am working on an app in which I have to pass 6 digits OTP through 6 textFields in which you to provide only one character and after that it automatically goes to ...
4
votes
2
answers
26k
views
onChange vs onKeyPress for input in React
I have an input form, and when you press enter I want it to call a function. I was wondering what "the right" way of doing this is.
Right now I have an input looking like this:
...
8
votes
3
answers
2k
views
Mask latitude text field
I have an input element on one of the pages. This input is supposed to take a string of digits from a user. In order to enhance UX I'd like to mask input's value at any given time. Like so:
What came ...
2
votes
1
answer
128
views
Create a GUI to update parameters of an Object
I have an Glob object which represents a glob of data. It has several parameters like size, the date it was created, who created it, and so on. I'm building a GUI ...
7
votes
2
answers
3k
views
Updating dimensions when focus is lost from any of 9 columns
How can I write this more pretty?
...
1
vote
2
answers
4k
views
Use jQuery to force two checkboxes mirror each other's state
RESTRICTION: jQuery 1.6.4 only, no other library, or version can be used.
My goal is to use jQuery to allow two input checkboxes behave the same.
For example: If 1st checkbox is checked, 2nd will be ...
2
votes
2
answers
1k
views
Keyboard handler for selecting radio buttons
I have got my JavaScript working as seen here:
https://jsfiddle.net/yLg1qs04/3/
But how do I condense/shorten it so that it's not repeating itself so often and taking up so many lines?
...
2
votes
1
answer
66
views
Handler for bidirectional unit conversion form
Building a form where values can be entered in either pounds or kilos.
Script is...
...
2
votes
2
answers
6k
views
Using actionPerformed() to call different methods per radio button selection
My Java is very rusty and I have been unlucky finding a better way to accomplish this task. I have two different methods which get called based on which radio button is selected. Is there a cleaner ...
4
votes
2
answers
3k
views
Designing a Backspace key
I have designed a Backspace button (part of a keyboard which I am designing) in windows forms and it works perfect with no errors (the code works very good). This button deletes what is inside the ...
4
votes
1
answer
73
views
Style-changing handler for an HTML drop-down box
How can I maybe do some loop that will compress the amount of JavaScript/jQuery I need to use. I have a function s3episodesChange() linked to a ...
4
votes
2
answers
307
views
CheckChanged event readability
I have a CheckChanged method that I would like to improve as it takes a lot of space in my program and really hurts readability.
The method prompts the user for ...
3
votes
1
answer
659
views
Checking checkboxes
I wrote this code for checking checkboxes. There are two groups of checkbox: each group's checkboxes have one common class all_perks and one individual class ...
2
votes
2
answers
182
views
Placeholder text for HTML search field
I'm not a great JS coder so I need your expertises to look into my code (although nothing very special and it works fine) to see if it is good practise or not because I heard that dodgy JS coding ...
4
votes
1
answer
900
views
Cross-browser double form submit prevention
We developed a potential solution for the double form submit prevention and we need some review on it. To be able to execute this code on asp.net we needed to add our function call directly into the <...
0
votes
1
answer
5k
views
Change URL on select change
I've made a method, which inserts a new query parameter, when the value of a select changes, then reloads the page. I've had enough of URL jQuery hax, so I figured it would be a great idea to put the ...
2
votes
3
answers
808
views
Options with a "yes" or "no" radio button
I have about 6 of these, but I'm only posting two. Essentially I have a bunch of options with a "yes" or "no" radio button. If "no" is selected, I want a form to popup.
...