</script>
<form>
Required Field: <input type='text' id='req1'/>
<input type='button'
onclick="isEmpty(document.getElementById('req1'), 'Please Enter a Value')"
value='Check Field' />
</form>
this is the example i got from interner source..
question is, how to validate multiple id...