Skip to main content
edited tags
Link
Kamil Kiełczewski
  • 93.7k
  • 34
  • 401
  • 375
add jquery tag
Link
ekolis
  • 7k
  • 17
  • 66
  • 122
Source Link
ekolis
  • 7k
  • 17
  • 66
  • 122

How can an HTML button do anything without an onclick event handler?

I can't figure out how these buttons are doing anything...

<div class="ui-dialog-buttonset"> <button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button"> <span class="ui-button-text">Cancel</span> </button> <button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button"> <span class="ui-button-text">Save</span> </button> </div> 

I want to see the code that they execute to cancel and save but there are no event handlers, so I can't figure out where the code lives... is there some secret place it could be hiding? I'm really confused!