In my webpage there is CTA href link but i dont want to redirect that link. I want to scroll to page section. So my question is that i used below code but does not working: $(document).ready(function(){ $("#cta_button_3852769_81fc24f7-1d1b-4cf0-aea6-b420d199a42b").click(function(event){ event.preventDefault(); }); });
@suniltodkar - CTA's load in dynamically so, you are probably executing that code before the button is available. You should attach the listener to the document or add an interval that checks for the existance of the CTA.
@suniltodkar - CTA's load in dynamically so, you are probably executing that code before the button is available. You should attach the listener to the document or add an interval that checks for the existance of the CTA.