Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Cancelar onblur de input

Reply
Thread Tools

Cancelar onblur de input

 
 
Emerich
Guest
Posts: n/a
 
      10-28-2005
Aew povo!!!

eu preciso cancelar a saída de um campo caso ele esteja vazio!!

alguém tem alguma idéia? não sei mais onde buscar!!!!

vlw aew... té mais

 
Reply With Quote
 
 
 
 
VK
Guest
Posts: n/a
 
      10-28-2005

Emerich wrote:
> Aew povo!!!
>
> eu preciso cancelar a saída de um campo caso ele esteja vazio!!
>
> alguém tem alguma idéia? não sei mais onde buscar!!!!
>
> vlw aew... té mais



Tente isto:

....
<input type="text" name="txt01" value="something"
onblur="if(this.value==''){
alert('This field cannot be left blank!');
this.focus();}">
....

Você pode usar Google traduzir ao inglês:
<http://translate.google.com/translate_t>
Esta maneira você começará mais respostas e você começá-las-á
mais rapidamente.
(Like I did despite I don't speak Portuguese)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
format a field (input in form) onblur WindAndWaves Javascript 4 09-27-2004 01:05 AM
onfocus, onblur on dynamic input box. Tzachi Javascript 1 09-19-2004 06:25 PM
focus() problem with Netscape <input onBlur> CES Javascript 9 04-07-2004 01:17 PM
Cannot get onBlur to work in body tag if a text input is focused jeff@dnuk.com Javascript 0 11-19-2003 10:11 PM
Javascript onblur prevents users to select dropdownlist simo sentissi ASP .Net 0 08-25-2003 05:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57