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
3 answers

ONFOCUS/ ONBLUR submits the default value instead of an empty value if nothing entered in INPUT box

I have replaced the default 'value' with some dynamic actions instead. There is a default value in the input box, user clicks and default value is deleted. User leaves and inputs nothing, default value re-appears. So far so good. The problem is that…
Stefan
  • 95
  • 2
  • 13
0
votes
0 answers

textfield onblur event

I have this text field
Rgg
  • 45
  • 1
  • 6
0
votes
3 answers

Adding class to input when default value changed

I have an input field that has a default value added with JavaScript
Dom
  • 3,126
  • 14
  • 46
  • 68
0
votes
3 answers

Blur() event doesn't work for me

This is my jQuery code: $('input[name="Search"]').blur(function(e) { $(this).text(''); }); And my HTML snippet: But it doesn't work, does anybody know why?
Victor
  • 13,914
  • 19
  • 78
  • 147
0
votes
1 answer

jEditable submit onBlur fails with ALT+TAB

I have jEditable working fine with a textarea to edit the content inside an object. I'm submitting onBlur using jEditable's onblur option directly to a function (instead of an url) and all works as expected UNLESS you change windows using for e.g.…
Rodrigo Neves
  • 220
  • 2
  • 12
0
votes
1 answer

custom validation for telerik date picker?

I am using telerik date picker. Date format is dd/mm/yyyy. If user enters it as ddmmyyyy then also it will be converted into format as dd/mm/yyyy. Now if user enters something like ddmmyy i.e. if year is only of 2 digits then i want to throw error…
Krish
  • 43
  • 1
  • 13
0
votes
2 answers

jQuery input value backup and replace on blur

I have a table of inputs that are read only, and these are populated from a DB. A user is going to be able to double-click on a cell and activate it for editing. In order to send the new data to the DB the user must press a button. The user can also…
LouieV
  • 1,032
  • 2
  • 15
  • 28
0
votes
2 answers

Creating html content/element dynamically with javascript

I'm trying to build a login page. When you tab out of the first text box (the username) I would like the page to display some information based on the text entered, before the password is entered. Right now, I'm having trouble just getting…
user1612226
  • 19
  • 1
  • 5
0
votes
2 answers

How to fix after the on blur event the textbox shows again?

After I type the input the textbox shows again in and I don't know how to fix. Here's the screen shot of the output: Is shows again after the on blur Here's my code, and I don't know how to fix this. though my function works well …
Sui Go
  • 463
  • 2
  • 12
  • 31
0
votes
2 answers

.blur() does not trigger when clicking outside datepicker

I have a .blur() event for four text inputs, that has datepicker and timepicker attached to them. When i "tab" to the next control, it works fine, but when i click somewhere outside, the event does not trigger. Am I doing something wrong, or is…
kaze
  • 4,299
  • 12
  • 53
  • 74
0
votes
1 answer

Triggering an Ajax POST on the onblur() event

I have an Ajax problem. There is an input field and I want to submit the changed value on the onblur() event. It all works fine except that there is an irritating flicker. I type in the new value and click away. The old value then flashes back…
Gordon Guthrie
  • 6,252
  • 2
  • 27
  • 52
0
votes
1 answer

IE onFocus not working when landing on page

I have read a few threads on this using JS. Is there a way with or with using JS to get onFocus to work in IE when the user lands on the page? If you click on the search box and off again, the search site... appears. It works fine in all other…
user1590819
  • 55
  • 1
  • 9
0
votes
3 answers

How to remove a div using .blur after using .click on another div

I am trying to make a big search bar div disappear the second I remove my mouse away from that div (but ONLY after the big search bar is visible from using .click function on another search bar). Sorry if this sounds confusing but this is what I…
user1279780
  • 99
  • 3
  • 10
0
votes
1 answer

copying data from a form field and placing it in an echo statement all within an $xml=simplexml_load_file function

I am loading and echoing data from an XML file through the $xml=simplexml_load_file function. Everything is working perfectly, the code is as follows ( in part ):
brian-welch
  • 441
  • 1
  • 7
  • 19
0
votes
1 answer

Can you call an external Javascript with an onblur event

I have written a JavaScript script and saved it as an external file, and now want to call it to validate a form entry (not the whole form) when they finish. I was thinking of using onchange and onblur, but can't find any way to do this. Am I just…
Damien-Data
  • 153
  • 1
  • 1
  • 12