Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Jefferson's user avatar
  • 353
0 votes
1 answer
164 views

Range slider show/hides and reset (vanilla js)

I have a HTML5 range slider. i.e. ...
Lieutenant Dan's user avatar
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 ...
Jefferson's user avatar
  • 353
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 ...
SOUL's user avatar
  • 121
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: ...
MrJalapeno's user avatar
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 ...
askhat's user avatar
  • 123
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 ...
Lord Farquaad's user avatar
7 votes
2 answers
3k views

Updating dimensions when focus is lost from any of 9 columns

How can I write this more pretty? ...
dadde's user avatar
  • 181
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 ...
OPK's user avatar
  • 285
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? ...
user avatar
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... ...
webguy262's user avatar
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 ...
h3rrmiller's user avatar
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 ...
naouf's user avatar
  • 143
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 ...
John123's user avatar
  • 205
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 ...
Lussos92's user avatar
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 ...
viral's user avatar
  • 291
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 ...
user29336's user avatar
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 <...
sebascomeau's user avatar
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 ...
Nix's user avatar
  • 101
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. ...
RJP's user avatar
  • 143