Submit form and update div content

1

I have two select option with districts and counties. Through JSON I can filter the districts with the councils only now I want to do the search the database. I want to submit form with the two choices and update the div that presents the content with the search result. How can I make javascript (specifically jQuery) show the result correctly?

    
asked by anonymous 18.02.2015 / 23:00

1 answer

1

You can return a value in the search (more specifically, a single, temporary hash). You create a script that returns the search result of that hash in the form of array or something that jQuery can read and after a certain period of time causes the hash to be deleted. Thus, the system has a higher security and does not directly interface client-> database.

    
18.02.2015 / 23:29