Show Map & Results only after Submit Button Clicked
-
Trying to show map & results only after submit button is clicked
I tried doing this with jQuery with no luck. Anyone figure this out?
Here’s what I tried (inside Visual Composer using the JS block)
<script> jQuery(document).ready(function(){ jQuery('#wpsl-search-btn').click(function() { jQuery('#wpsl-gmap"').show(); }); }); </script>
CSS:
#wpsl-gmap {display: none;}
This works if I click function the
.wpsl-search-btn-wrap
wrapper isn’t the right thing to do plus you can only click on the wrapper padding.I’ve also tried submit function with no luck. Just trying to take this plugin one step forward and serve the search field first
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘Show Map & Results only after Submit Button Clicked’ is closed to new replies.