버튼누르면 입력창에 치던글씨 글씨체 바꾸기
본문
옆에 있는 버튼을 누르면 input type="text" 에 있는 글자의 글씨체가
bold나 이탤릭체로 바꾸게 하고 싶습니다.
<button type="button" id="bold">BOLD</button>
<input type="text" id="maintext" />
$("#bold").click(function(){
??
});
jquery시에 저기에 뭘 넣어야할까요?
생각해본것은
message = $("#maintext").html("<b>");
$("#maintext") = message;
이건데..
!-->
답변을 작성하시기 전에 로그인 해주세요.