I want user select a radio input
<input id="package1" type="radio" name="package1" value="package1" onClick="document.getElementById('complate').scrollIntoView();" />
<input id="package2" type="radio" name="package2" value="package2" onClick="document.getElementById('complate').scrollIntoView();" />
This event fast scroll to section but I need smooth scroll
Try this jQuery snippet:
And add the class of
packageBtn
to your radio buttons. E.G: