button issue

button issue

I just changed my buttons in my application from CSS developed a few years ago that really was ugly.

I basically just change the class names and then call $(".aButton").button();, but I am having a problem with the buttons with both href and onclick attributes not running the way they did, it seesm to do the onclick function but not the href stuff.

  1. <a onclick="return mySubmit('Cancel',this);"
  2.     href="javascript:closeDialog();"
  3.     class="aButton aButtonRight ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
  4.     name="buttonCancel"
  5.     id="StatusCancel" role="button">
  6.    <span class="ui-button-text">Cancel</span>
  7.  </a>