I have angularJs application, I also use Angular routing to go browse through other pages.
When I try to use some jQuery validation libraries for IE8 compatibility (for new html5 atrributes) it does not work at all and I guess this is because I dont use jQuery properly.
The the below code is from body of index.html
<body>
....
<script src="js/libs/jquery.h5validate.js"></script>
<script type="text/javascript">
$(document).ready(function (){
$('#Page').h5Validate();
});
</script>
</body>
Here "ProfilePage" form element is on another html file(consists from a div) and I can not access/use it like above using jQuery. It just does not do anything.
Any solutions?
ProfilePage
is on an external file loaded by a route, you should call thath5Validate
from that controller – RGraham Feb 14 at 16:28