When is jquery like this, it works:
if( jQuery('.cmp .input-rangeslider-' + inputName).hasClass('do-not-update') ){
jQuery('.cmp .input-rangeslider-' + inputName).removeClass('do-not-update');
}
But when i write jquery like this:
if(jQuery('.cmp .nemovitosti input[name="type"]:checked')){
$(".answer").show();
}
else{
$(".answer").hide();
}
it cause this error: Uncaught TypeError: $ is not a function