html page
js code
<script><br>function checkForm() { <br>pass = true; <br>$("td:contains('*')").next().find("input").each(function (){ <br>if(this.value == '') { <br>text = $(this).parent().prev().text(); <br>alert(text " is required "); <br>this.focus(); <br>pass = false; <br>return false;//jump out of each <br>} <br>}); <br>return pass; <br>} <br></script>