php - How to use javascript:void(0) in a form action in Laravel? [Laravel 5.1] -


as know javascript:void(0) used set action undefined in simple html.
need use same thing in laravel blade stated below:

{!! form::open(array('url' => '#', 'class' => 'form-search', 'id'=>'search_form')) !!} 

how set form action javascript:void(0) in above code.

please me sort out issue.

thanks.

{!! form::open(array('url' => '#', 'class' => 'form-search','id'=>'search_form')) !!}   <!-- content -->         <input type="submit" value="submit" onclick="function()" > </div> {!! form::close() !!} 

and in function()

javascript:void(0) 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -