Hi I am developing Website in angularjs and i am doing Registration page.I am trying to implement validation(Jquery plugin). I have imported required css and js files. Below is my html code.
<input class="form-control validate[required] text-input" type="text" name="LastName" placeholder="{{ 'Last Name' | translate }}" ng-model="Lname">
Below is my Registration controller.
(function () {
angular.module('RoslpApp').controller('MainRegistration', ['$rootScope', '$translatePartialLoader', '$translate', 'cfg', function ($rootScope, $translatePartialLoader, $translate, cfg) {
$translatePartialLoader.addPart('Registration');
$translate.refresh();
$translate.use('de_AR');
}]);
})();
To implement validation i want to write below code.
<script type="text/javascript">
jQuery(document).ready(function () {
// binds form submission and fields to the validation engine
jQuery("#formID").validationEngine();
$("formID").attr('autocomplete', 'off');
});
</script>
May I get some help where to write jquery code? Any help would be appreciated. Thank you.