버튼 클릭시 텍스트(font) 색 변경 질문 채택완료
<input type="button" value="답 보기"> 이 버튼을 클릭하였을 때
<font color=white>답이 쓰여지는 곳</font> 이 부분의 색을 red 로 바꾸고 싶은데 어떻게 해야 할까요?
답변 4개
<input type="button" value="답 보기" onclick="$('#fontcolor').css('color','red');">
<font color="white" id="fontcolor">답이 쓰여지는 곳</font>
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
<input type="button" value="답 보기" onclick="$('#fontcolor1').css('color','red');">
<font color="white" id="fontcolor1">답이 쓰여지는 곳</font>
<input type="button" value="답 보기" onclick="$('#fontcolor2').css('color','red');">
<font color="white" id="fontcolor2">답이 쓰여지는 곳</font>
복수사용시 이런식으로 다수 사용시 ID에 넘버링 처리하시란 뜻입니다.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 2개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
이렇게 있는데 이곳은 안바뀌는데 어떻게 해야 할까요?