title: Replacing functionality of one button with the functionality of another button using Javascript
body: <p>I am using LimeSurvey and I have to change the functionality of a button using javascript.</p>
  
  <p>I have a button with ID "NextButton", and On clicking that I want to call "SubmitButton" and hence the functionality of "SubmitButton" is executed. </p>
  
  <p>I can only do this using Javascript/Jquery a nothing can be done in HTML. </p>
  
  <p>Please let me know if it is possible.</p>
  
  <p>I know it has to do something with OnClick event, but I am not sure how to replace the functionalities like I said. </p>