Add click event on a jquery dialog

914 Views Asked by At

I want to create a settings button on a site which will open a jquery dialog and I want to add a click event to the button on that dialog?

How would one do this with a greasemonkey script?

I have looked at this script: How do I pop up a custom form/dialog in a Greasemonkey script?
But that shows the dialog directly when opening the site. I want a button that opens the dialog.

1

There are 1 best solutions below

4
On

Are you looking for jQuery Popup to open on Button click ? If so, then following link will be useful for you.

Jquery open popup on button click for bootstrap