It's Repository

blog.selpa.co.kr

포토로그



jQuery.click(".class") 예제 HTML/CSS/JS

<script>
//<![CDATA[
function copyValue(val, targetObj){
document.getElementById(targetObj).value = val;
}

function toggleDisabled(thisObj){
tarObj = thisObj.value;
tarEle = document.getElementById(tarObj);
if(thisObj.checked == true){
tarEle.disabled = false;
}else{
tarEle.disabled = true;
}
}


$(document).ready(function(){
// toggle disabled
$(".checkObj").click(function(){
toggleDisabled(this);
});
// TODO
});
//]]>
</script>


      <tr>
        <td><input type="checkbox" class="checkObj" value="test"  checked="checked"  /></td>
        <td>*test</td>
        <td><input type="text" id="test" name="test" value="테스트값" /></td>
      </tr>

덧글

댓글 입력 영역