Questions tagged [onblur]

The blur event fires when an element loses focus.

The blur event fires when an element loses focus.

653 questions
-1
votes
1 answer

Angular 7 ngx-intl-tel-input onBlur() event any solution?

I stucked with a issue in Angular 7 with ngx-intl-tel-input package. i just want to check phonenumber on blur.
Mahaveer Jangid
  • 366
  • 2
  • 11
-1
votes
3 answers

Using Javascript/jQuery to change form response

I have a form on my site, and I need to change the response just for people who enter one of a few zip codes. I'm trying to set the code up to check the first 3 digits of the entered zip code against the objects saved in my array. It's not finished…
Molly Campbell
  • 339
  • 2
  • 6
  • 15
-1
votes
1 answer

Getting Blurred Element

I have binded blur on an input. On blur, I want to use $(this) and detect this input. Is there a way to do that? $('[data-john=x]:not([data-doe=true])').blur(function() { console.log($(this)) }) In this…
senty
  • 12,385
  • 28
  • 130
  • 260
-1
votes
1 answer

Javascript onfocus and enter key

I have a login form which contains a username field, password field, and a submit button like so:
samo
  • 33
  • 10
-1
votes
3 answers

javascript onblur starts too soon

I have a div containing an input followed by an ul : ul area is filled using Ajax : onkeyup and onfocus are used for searching values in a database depending on what has been seized in input area, so user can choose among that…
Schonke
  • 11
  • 5
-1
votes
2 answers

Blur/Onblur not doing anything

I've been trying to change the border-color of a textarea when the focus gets out, but it's not doing anything, not even if I'm only trying to alert something. These are the methods I've tried so far: The first: $('#idname').on('blur', function()…
-1
votes
1 answer

how can you create multiple on focus and onblur?

I want to know how to create multiple onfocus and onblur for multiple input fields. I have something like this but when the name field is onfocus, the email field is onfocus too. Is there a way to solve this? $(document).ready(function(){ …
-1
votes
1 answer

After blur on input box, keydown events no longer seen

I made a div, when you press "e", it places a text box over the text. When you press tab, it takes the contents and places them into the div. However, after this happens, it no longer recognizes key events until you click in the window again (I'm…
Joshua Cheek
  • 30,436
  • 16
  • 74
  • 83
-1
votes
1 answer

call javascript onblur event from another javascript

this is my javascript code $(document).ready(function() { var count = 0; $("#add_btn").click(function(){ count += 1; $('#container').append( '
Satrio
  • 1
-1
votes
1 answer

how to instantly print result when enter a number in text field

Like i have a text field to input only numbers and i want to make a multiplier. Like if i write 1 it instantly multiplies the number(1) to say 2 and if continue writing the number like i already wrote 1 and continue to add 2 in that to make it 12…
-1
votes
4 answers

onblur & onfucus on PHP echo

This is part of my PHP code, and inside of it there is an echo that will print some HTML code, with the onblur and onfocus conditions. This code works when it's outside of echo but not inside of it. I already tried to add the double quotes on the…
zppinto
  • 287
  • 7
  • 20
-1
votes
1 answer

How to populate a textbox in a table on the 'onblur' event of a different textbox in the same table?

I have a table as below. I have to populate the Amount field using the Buy Quantity and Market Price field. Amount = Buy Quantity*Market Price. I am doing something as -
Nihal Sharma
  • 2,397
  • 11
  • 41
  • 57
-1
votes
4 answers

Reading from input box onblur

I'm trying to build a login page. I would like to read the information from the username text box to use in javascript with the onblur event. So ideally, when somebody tabs or clicks away after they've entered their name, the page will read in the…
user1612226
  • 19
  • 1
  • 5
-2
votes
1 answer

How do I fix this simple regex test?

I'm new to all this - all I want to do is use onblur to check first and last names. It may be a basic issue, but I can't seem to figure out why it always spits out the ELSE statement and never the IF. I've tried changing the re1 in many ways, but it…
Daniel
  • 1
  • 2
-2
votes
2 answers

How do I submit a form with multiple fields as soon as no field is focused anymore?

I have an Elementor form with multiple fields. I want the form to be automatically submitted as soon as there is no focus on any of the fields like clicking somewhere. My solution for a form with a single field looks like this: $( '#form-field'…
bndkt
  • 13
  • 4
1 2 3
43
44