Where The Streets Have No Name

getAttribute 활용 본문

Developement/Web

getAttribute 활용

highheat 2007. 3. 20. 20:56
<script type="text/javascript">

function fncTest(){    
    alert(document.getElementById("txt_code").getAttribute("column"));    
}

</script>
<input type="text" id="txt_code" column="colCode">
<input type="button" onClick="fncTest()" value="test">