I am making a web application using Spring MVC and jsp. I am quite new to this and really struggling to find an approach to validating a username from DB before submitting the form. Here is a demo of the kind of thing am looking for http://www.bitrepository.com/demo/username-checker/
Would appreciate any help given. Thank you
onsubmitevent (not ononclickevent). So you just need to change it to whatever you like. Find the list of possible DOM events here (plain js) and here (jquery version)