On the client side the only commonly available language is javascript so you can do client side validation in javascript. But remember that it never replaces server side validation, it can only complement it for the ease of use so that the user can have immediate feedback without waiting for connection to the server.