If i have
<input type="image" name="image1" id="image1">
<input type="image" name="image2" id="image2">
I want to get the name and ids of the above two tags dynamically
I tried with document.images and document.form.elements it is not working.
Any suggestions on this