- Overview
- Documents
jConfirm is a jQuery Confirmation Tooltips plugin with CSS Design, Message Text, Button Labels, Callback, Element clicked returned to Callback
Source: flwebsites.biz
Jun 24, 2014 in Tooltip 6916 views
jConfirm is a jQuery Confirmation Tooltips plugin with CSS Design, Message Text, Button Labels, Callback, Element clicked returned to Callback
Source: flwebsites.biz
1. INCLUDE CSS AND JS FILES
<!-- Includes the CSS --> <link rel="stylesheet" type="text/css" href="jConfirm-v2.css"> <!-- Includes the jQuery and the JS --> <script src='https://code.jquery.com/jquery-2.0.3.min.js'></script> <script src='jConfirm-v2.js'></script>
2. HTML
<!-- Create buttons --> <a href='http://github.com' class="btn btn-lg btn-primary jConfirmTwo" role="button">Get it on Github</a>
3. JAVASCRIPT
<!-- Apply to all current elements with the class jConfirmTwo --> $('.jConfirmTwo').jConfirm({ message: "You sure you're ready to use our badass plugin?", confirm: "Let's GO!", cancel: "Sorry, I'm a Loser...", openNow: false, callback: function(elem){ window.location.href = elem.attr('href'); } });
Tagged with:
jconfirm
jquery plugin
confirmation
tooltips
confirm
message text
confirm tutorial
button labels
Related Articles