<button class="proceed">
<div class="text-sm-bold clr-white" onclick="proceedBook()">PROCEED FOR BOOKING</div>
</button>
<button id="hid-cb" hidden type="submit" class="proceed-btn" name="conform-booking">PROCEED FOR BOOKING</button>
const proceedBook= ()=>{$("#hid-cb").click()}
$("#hid-cb").click()
not work in mobile
instead i use jQuery vclick
const proceedBook= ()=>{$("#hid-cb").vclick()}
error: Uncaught TypeError: $(…).vclick is not a function
2
Answers
This will trigger the ‘click’ event on the hidden button when the proceedBook() function is called.
For mobile compatibility, ensure that your mobile environment supports the events you’re using. Sometimes, certain events might behave differently on mobile browsers, and you may need to use touch events or other mobile-specific events.