-1

Actually I have this code:

<input type='submit' name='bn_search' value='<?php echo xla('Search'); ?>'/>
  .....
<?php if ($_REQUEST['bn_search']) { ?>  
<?php ....... } ?>

I have created a submit button "Search" and when I press this button the page will refresh and I want to prevent it. The button,also, shows some results from the database.Can I make it working without refreshing? If anyone can help me I would appreciate it.

Felix
  • 37,892
  • 8
  • 43
  • 55

1 Answers1

0
$("form").on('submit', function(e){

    e.preventDefault()

});

Edited due to tip in comments @carpetsmoker