Implementing a simple blockUI example in an existing page.
I'm new to jQuery and have been playing around with some of the blockUI plugin samples trying to get one of them to work in an existing project. If I paste the code below just below the <body> it works as expected.
I have a standard button control (btnNext) within a view within a multiview that'd I'd like to blockUI on click event, so I change
$(
'#demo3').click(
function() to
$(
'#btnNext').click(
function() but get "JavaScript runtime error: Object doesn't support property or method 'blockUI'." I'm wondering if someone can kindly suggest where my problem may be?
<button id="demo3">Run</button>
$(document).ready(function() {
$('#demo3').click(function() {
$.blockUI({ overlayCSS: { backgroundColor: '#00f' } });
setTimeout($.unblockUI, 2000);
});
});