Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check box (if checks) validation on text field

 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In our page we have one check box and corresponding two text fields in a row. and many rows in a table.

if the user checked the box, then automatically the cursor should go to corresponding text field and do validation on that text field and i need to apply onblur event on that text field that we dont give the permission to move out from that filed until user fills correct value.

I can able to validate field with onblur and showing message field is required. but when I click on the check box the cursor is not moving to that field. how would I go directly to that field.

here is the following code.



Please suggest me on this, i want to go directly to the quantity field.

One more question: the above validation what I did is working under IE
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more question: the above validation what I did is working under IE but its not working properly in Mozilla, why? but I need to be validate the fields in any of the browser.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sumant kuchipudi:
but its not working properly in Mozilla, why?

I assume you mean Firefox? What did Firebug show you?
 
Simpson Kumar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firebox is not showing anything, its just allowing to move out from the text box. where as in IE its not allowing to move out from that filed until fill correct value, the onblur event is working.


what about the above suggestion? how can I move directly to the text field if I click on the checkbox?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic