클릭할때마다 div 텍스트 변경하기
<div>test</div>
변경하기
$(".btnSubHwp").click(function() {
//$("#ttt").html("조정자료보기"); //변경할려면 .$("#ttt")
if($("#ttt").text()=="보조자료보기"){
$("#ttt").html("조정자료보기");}else {
$("#ttt").html("보조자료보기");
}
subHwpObj(hwpCtrl, hwpFile);
});
<div class="button blue btnSubHwp" id="ttt">보조자료보기</div> <--이놈꾸기
'JSP' 카테고리의 다른 글
[jstl] 숫자 천단위마다 콤마 찍어 구분 (0) | 2014.08.18 |
---|---|
HwpApp.dll 에러 (0) | 2014.08.01 |
공부하자! (0) | 2014.06.26 |
Starting Tomcat v6.0 Server at localhost' has encountered a problem. Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. (0) | 2013.08.23 |
textarea에서 읽어온 값 띄어쓰기 (0) | 2013.05.09 |