View Single Post
  #2 (permalink)  
Old September 22nd, 2005, 05:15 AM
ChrisScott ChrisScott is offline
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Gopalakrishnan,

Try this...
Code:
function FindImageFlds(){
    var f = document.getElementById("myFormId");
    var els = f.getElementsByTagName("input");
    for(var i = 0; i < els.length; i++){
        var e = els[i];
        if(e.type == "image"){
            alert("found an image field, id: " + e.id + "; name: " + e.name);
        }
    }
}
HTH,

Chris

Reply With Quote