SolveigTraeet Posted February 10, 2021 Share Posted February 10, 2021 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> 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.