+ Start a Discussion

populate input field using AJAX

Hi Everybody..

                         I have a vf page with two  inputfields, i need to populate inputfield2  by querying database  with  inputfield1 value using ajax.


          Can anyone Help me out..:))))


Thank You

Imran MohammedImran Mohammed

Actually you should rerender field2 once the ajax call is done.

Is there a button event after which query will be issued to find field2 value.

or Do you want to get the value when control comes out of field1