calling jquery function from within existing js function
i'm trying to call a jquery function from within an existing javascript function - is this possible ?
i have the following :
- function function_name {
if ( 1 = 2)
{
$.blockUI({ message: $('#disclaimer') });
}
}
but this doesn't seem to work.
i have tested the following code outside of the existing js and it works fine :
- $(function()
{
$.blockUI({ message: $('#disclaimer') });
});
can someone point me in the right direction ? i appreciate that trying to tack some jquery code onto existing js code isn't ideal ...
thanks in advance