how to activate noty notification on button click #118

Closed
aathar opened this Issue Jan 22, 2013 · 1 comment

3 participants

@aathar

Sir, please don't mind me asking as I am quite new in JQuery. I have downloaded and followed your instructions on http://needim.github.com/noty/ till the installation section. I have imported all the .js files in my asp.net project.

I am really not sure how to call a notification box on a button click in asp.net. Your little help will make my entire day pleasurable and shall be much appreciated.

@romeozor

If you have included the necessary .js files (add inline.js as well), you can create a button on your page

<input type="button" class="some-cool-class" value="Pop Pop!"/>

Then, you can hook the noty code up to the button's click event by:

$('.some-cool-class').click(funciton() {
    noty({ text: 'It is alive!', type: 'success' });
});
@needim needim closed this Aug 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment