Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

enable and disable a text field  RSS feed

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello to all..

i have three text fields..in the begining..all the fields will be empty ...as soon one field is filled..the other two should be disabled(document.EnableDisable.TextField11.disabled = false; )means not allow user to insert into other two field..and at same time if we.. delete the entered text field..then all the text field should be enabled..this thing i handled good.. problems started when...instead of empty field .. 0(zero) is taken as default..in the placed in the empty fields..

How to handle to this situation..help me out please..

my code for empty text fields..is.
please help out if any have solution..
 
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check to see if the value is zero?

Eric
 
aman hindustani
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah ...i got it..

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!