Questions tagged [onblur]

The blur event fires when an element loses focus.

The blur event fires when an element loses focus.

653 questions
0
votes
1 answer

Search By Multiple Checkbox, with AJAX div updating... where do I begin?

I'm hoping to create a fairly simple 'filter by multiple checkbox' search tool for a website... and I don't know where to begin with live updating results within a specified div as soon as someone selects/deselects a checkbox. I hoping to build a…
Joe D
  • 33
  • 3
0
votes
2 answers

Focus and blur events triggered on wrong element

I'm trying to set a default value for several inputs at once, removing that value on focus and setting it again on blur if the input is empty. To achieve that, using jQuery, I've got this code: var settings = { value: '', focusColor:…
davids
  • 6,259
  • 3
  • 29
  • 50
0
votes
2 answers

Jquery textbox validation with textbox value

I have a couple textbox's in a form that have values in them. I am using onfocus and onblur to clear the value when the user clicks on the textbox. I am also trying to validate the textbox's but since there is already a value in the box the…
onei0120
  • 189
  • 1
  • 9
  • 28
0
votes
1 answer

On submit, after X seconds, if window blur

I am trying to identify if the window loses focus after 3 seconds of submit. Currently I have this: $("input").on("submit",function(){ $(window).blur(function(){ console.log(a); }) }); But this, no matter when you press submit, if you click…
jQuerybeast
  • 14,130
  • 38
  • 118
  • 196
0
votes
1 answer

Why both onblur events of asp:textbox getting executed?

In my website of Visual Studio 2008 (.NET 3.5), I have two textboxes in a page and there are two different onblur events for both. when first event is getting executed, the same time another is also getting executed. I don't get why it is. Here is…
LeO
  • 35
  • 3
  • 14
0
votes
2 answers

How do I invoke the IE 'onblur' event from VBA code in Excel?

Situation: I am working to populate text entry boxes in a webpage with data from Excel. When the data is entered manually and the focus is moved to another text box, the 'onblur' event is fired to do input validation. Desire: I want to be able…
Jay
  • 10,200
  • 4
  • 28
  • 36
0
votes
3 answers

Is there any alternative to jQuerys "blur" and "focus" functions?

I have an counter on my site and I want this to pause when my site isnt focused. If I use the blur (someone leaves the focus) and someone clicks on a link that opens in a new tab and then closes the tab the focus isn't back on the previous page? Why…
heiningair
  • 441
  • 1
  • 6
  • 23
0
votes
1 answer

Keep textarea open if change event otherwise animate it on blur

What I'm trying to do is this: You click in a textarea, and it'll expand to 100px. Normally it's at 50px. If you click outside (or trigger the blur event after clicking in the textarea...) it should go back to it's normal 50px height. If you trigger…
bob_cobb
  • 2,229
  • 11
  • 49
  • 109
0
votes
1 answer

How to check If "mywindow" tab of the browser is active or not in asp.net 4.0?

Actually i am making website of online test/exam in asp.net using c# 4.0. And for giving exam the user needs to click on a button which will open a window with a JavaScript function. function OpenForm() { window.open('Test.aspx',…
0
votes
2 answers

Extract substring out of a user input phone number using Javascript

I am getting phone number input from user as +XXX-X-XXX-XXXX that (+XXX as country code), (X as city Code), (XXX as 1st 3 digits) and , (XXX as 2nd 4 digits). I used regular expression to confirm the entry as in following code; function…
AbdulAziz
  • 5,868
  • 14
  • 56
  • 77
0
votes
1 answer

textbox onblur event not fired when i click the exit button in asp.net

I have one modelpopup extender, in that one textbox and two asp.net buttons(save,exit), textbox i wrote the onblur event (in that event textbox entered value check the database valid or not , not valid display the alert message ) now that condition…
hmk
  • 969
  • 10
  • 38
  • 70
0
votes
1 answer

jQuery Validate onBlur with summary

Trying to validate a form that I don't know the contents of and display a summary at the top of the page using jQuery Validate. I don't want messages next to each field. I can get it working fine onsubmit, and if I disable onfocusout/onblur/onkeyup,…
0
votes
1 answer

Checking change in form field before executing AJAX store with Javascript OnBlur OnFocus? How?

I am currently executing AJAX query stores on each onblur if this.value is not equal to '', but for users tabbing through a form and not changing anything, this is an insane amount of database query hits for nothing (and yes, I check for changes on…
John Egbert
  • 69
  • 1
  • 6
-1
votes
1 answer

How do I make a form submit work when button disappears on onBlur event? React, next js

I have a form which performs an event on submit. The form contains a textarea, that when you click on it, the submit button appears, and when you click out it disappears (using onFocus and onBlur for this to flag variable 'showSubmit'):
letie
  • 704
  • 2
  • 10
  • 20
-1
votes
2 answers

React validation on blur and on button click

I have multistep form and I want to make the inputs required. Validation should be on blur and on click button "next". On blur works as expected but I have problems with validating on button click. That way like below, I don't go to next step, no…
maja
  • 175
  • 5
  • 17