Forum Moderators: open

Message Too Old, No Replies

element Focus issue!

element Focus issue!

         

satyendra dhar

6:44 am on Nov 27, 2008 (gmt 0)

10+ Year Member



Hello Friends,

I have a html form with some 2-3 input fields.
After providing the input on all the fields i am triggering a submit to the next form.

Note: submit is not the html submit btn. I have put one logic, using that when i am pressing a key-1 of my keyboard this submit is happening.

Problem: When i submit this form with pressing the key-1, the data of last input field is not going with the reuqest, and can't be read in next form, as input field is not loosing the focus.

I want to remove the focus from the last input field.
Can any one help me here.

I had tried document.activeElement.blur(), but it is IE specific and I am loking for a generic solution.

Thanks & Regards,
Satya.

kazisdaman3

9:54 am on Nov 27, 2008 (gmt 0)

10+ Year Member



what if u instead try to blur the focus, you just focus on another field?

satyendra dhar

11:10 am on Nov 27, 2008 (gmt 0)

10+ Year Member



fields are defined by the user.. and not known at runtime....