You need to wrap your jQuery code inside $(document).ready(function() { });
or $(function() { });
to let it see the whole DOM as well as using on() instead of live
since live
is deprecated and completely removed in jQuery version 1.9+
$(document).ready(function() {
$('#submit-form').on('click',function(){
$('#preview_form').validationEngine('validate')?subForm():'';
});
});
The other thing is to make sure the path to all your files are correctly targeted.