Hey, we add an onchange event to the select menu in the javascript code , so every time we select on option we get the results. Download the free source code: digitalfox-tutorials.com/tutorial.php?title=Using-php-Ajax-and-a-dropdown-select-menu-to-filter-database-data
Yes it's necessary, because we have to catch the select's menu 'change event'. But if you don't want to use JavaScript you can put the select menu in a form element and add a submit button to send the request straight to the php file.
Great video! Thanks a lot for sharing your knowledge!
Thank you
That was very nice, also learnt something from here, thanks for the tutorial
Glad it was helpful!
Thanks for the informative video. It has been two weeks wait
Thanks Zaif
Once again a learnable tut. Love it
Thank you
Great tutorial, but how do you add click events to html elements because the filter asychronously load the elements
Hey, we add an onchange event to the select menu in the javascript code , so every time we select on option
we get the results.
Download the free source code:
digitalfox-tutorials.com/tutorial.php?title=Using-php-Ajax-and-a-dropdown-select-menu-to-filter-database-data
God bless you. You are a life saver. Thanks for this incredibly useful video. Subscribed...
Thanks
Efkaristo para poli!
Να σαι καλά. Χαίρομαι που σου άρεσε το video.
How would this change for multiple filters?
Hey, maybe this video can give you an idea
ua-cam.com/video/2kjnmeHfRRM/v-deo.html
Sir can you make filtering data with help of multiple form elements like radio buttons and multiple dropdowns
Hey, check this video out : ua-cam.com/video/2kjnmeHfRRM/v-deo.html
Is the Java script part necessary or can I leave it out and it still filters?
Yes it's necessary, because we have to catch the select's menu 'change event'. But if you don't want to use JavaScript you can put the select menu in a form element and add a submit button to send the request straight to the php file.
@@DigitalFox-tutorials OK thanks
thanks bro
Welcome
😇 very helpful pls try
Thank you