I have a field like Image. I want to set it mandatory for the buttonclick event in javascript.
Here is my html
<input type="image" name="ImgAttach" id="ImgAttach" src="../Images/attachment_1.png" onclick="return Imgclick();" />
and button code
<input type="submit" name="CmdSave" value="Save" onclick="return FunSaveValidate();" id="CmdSave" class="button" />
Note I want this in javascript.
See js fiddle for more details
source
share