I have an autocomplete search box to search names from DB. Result should be search name, click to open a modal posting the data from php if id is equal. My problem is that when the modal pops-up the page will refresh automatically. How do I stop the page from restarting when the modal form show upon post submit? Seeking your help for this. Thanks alot!
Please refer my codes as noted below:
**HTML** This is an autocomplete searched from livesearch.php
**JS** This should open a modal datas from dsearch_modal.php equal to id="searchid" of <form class="search" id="searchForm" method="post">