Difference between revisions of "JQuery dialog links"

From KOP KB
Jump to: navigation, search
(Created page with "You can use this for multiple purposes for this but the main one would be to allow a customer to copy and paste a coupon code to be able then apply it at checkout. <snytaxhigh...")
(No difference)

Revision as of 16:31, 4 March 2015

You can use this for multiple purposes for this but the main one would be to allow a customer to copy and paste a coupon code to be able then apply it at checkout. <snytaxhighlight lang="javascript"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> var cp1="CP1"; $(document).ready(function(){

   $("#hdrp").click(function(){
      window.prompt("Copy to clipboard: Ctrl+C, and Then hit enter, Then paste the code in to apply the coupon code", cp1);
   });

}); </script> </syntaxhighlight>