var href = document.getElementsByTagName("label"); var count = href.length; if(count>0){ for(var i=0; i