Adding close action by javascript
-
I added the following javascript in the content to add a close action when a button is clicked but it doesn’t work. Do you know why?
<script type=”text/javascript”>
jQuery(function() {
jQuery(‘.hs-submit .hs-button’).click(function(e) {
e.preventDefault();
jQuery(‘.spu-close’).trigger(‘click’);
return false;
});
});
</script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding close action by javascript’ is closed to new replies.