svgmx5 Posted February 22, 2011 Share Posted February 22, 2011 quick quesiton??? I have a form in which users can type in a name of a building and it uses ajax to automatically show hints of names corresponding to their input. What i want is as soon as the users selects that hint for the form to display the results with out having to press a submit button. I'm using PHP pass the variables but i dont know how i can make it display the results as soon as the users selects the drop down hint Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted February 23, 2011 Share Posted February 23, 2011 Make an Ajax request via the onchange or onselect attribute. Quote Link to comment Share on other sites More sharing options...
codefossa Posted February 24, 2011 Share Posted February 24, 2011 Check out HTML's onKeyPress attribute, and make a JS function to go along with it, and update the container. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.