SolveigTraeet Posted February 10, 2021 Share Posted February 10, 2021 (edited) Site URL: https://caper-badger-3s6d.squarespace.com/blog/lyrics Password: home If I (accidentally) press ''enter'' in the search field, a new seach page appears. Is it possible to remove the link to this page and disable ''enter'' function on search? I tried this code from @tuanphan, but it didn't work. Can anyone help me remove search page/disable enter function? <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $("form").keypress(function(e) { //Enter key if (e.which == 13) { return false; } }); </script> Edited February 10, 2021 by SolveigTraeet Link to comment
tuanphan Posted February 14, 2021 Share Posted February 14, 2021 try replace form with .sqs-search-ui-button-wrapper Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
SolveigTraeet Posted February 14, 2021 Author Share Posted February 14, 2021 8 hours ago, tuanphan said: try replace form with .sqs-search-ui-button-wrapper @tuanphan It didn't help. Do you know what could be wrong? Link to comment
SolveigTraeet Posted February 17, 2021 Author Share Posted February 17, 2021 On 2/14/2021 at 12:23 PM, SolveigTraeet said: @tuanphan It didn't help. Do you know what could be wrong? @tuanphan Can you help me complete the code? Link to comment
SolveigTraeet Posted February 26, 2021 Author Share Posted February 26, 2021 @tuanphan Can you help me complete this? Link to comment
SolveigTraeet Posted March 7, 2021 Author Share Posted March 7, 2021 @tuanphan Have you figured out what the problem is with the code you gave me? Link to comment
tuanphan Posted March 15, 2021 Share Posted March 15, 2021 Hi. I have no idea.. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment