Hot answers tagged

2

Try using below code which is working fine for me: <script type="text/javascript" src="/sites/SPConnect/SiteAssets/jquery.min.js"></script> <select name="cars" id="ddlphysicalVirtual"></select> <button type="button" onclick="getChoiceOptions()"> Get Choice Options </...


1

As per my understanding (Correct me if I am wrong), you forgot to add the type="button" to your button element. So, Add type="button" to the button element like: <button type="button" id="button_overview" onclick="yourFunction()">Click Here</button> Reference: prevent refresh of page when button ...


Only top voted, non community-wiki answers of a minimum length are eligible