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 Link to comment https://forums.phpfreaks.com/topic/228472-how-can-i-display-the-results-from-a-form-with-out-pressing-the-submit-button/ 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. Link to comment https://forums.phpfreaks.com/topic/228472-how-can-i-display-the-results-from-a-form-with-out-pressing-the-submit-button/#findComment-1178828 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. Link to comment https://forums.phpfreaks.com/topic/228472-how-can-i-display-the-results-from-a-form-with-out-pressing-the-submit-button/#findComment-1178992 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.