sanjayrawat177 0 Newbie Poster

hi


i have one problem in my project
what i m doing is populating the select box from data base.
When user presses F3 button in select box, a pop up window will open which will allow the user to enter new value ,which will first go to database and pop window will close down.
Now when before close down, i have applied a jquery which will get the data from database and again populate the updated data in select box...
But when i run this thing first tym it will show old data .... but when i refresh the page and then do the same thing-pressing f3 entering data and getting data from data base using jquery, it work fine.........


i m doing this in this given manner
JSP page(With Select Box)-----Open the popup with F3 and enter Data----- ----Jquery($(Post))from----JSP with switch case for different select box------Show data in select box


it is not working in first try but work good after that .....
pls solve this mystery.......