i

input 를 a href로 바꾸고 싶어요~

<input type="submit" id="btn_submit" name="fmemoform" accesskey='s' value="보내기">


<a href="#"> 이런형식으로 변경하고 싶은데 방법이 있나요?
|

댓글 2개

<form name="test_form" method="post" action="./test.php">
<input type="hidden" name="test1" value="">
<input type="hidden" name="test2" value="">
<input type="submit" id="btn_submit" name="fmemoform" accesskey='s' value="보내기">
</form>


==>


<a href="javascript:wow_form();">test</a>

<form name="test_form" method="post">
<input type="hidden" name="test1" value="">
<input type="hidden" name="test2" value="">
</form>

<script type="text/javascript">
function wow_form() {
document.test_form.action = "./test.php"
document.test_form.submit();
}
</script>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
항상 권장하는 형태라는것이 존재 하는것은 특별한 사항이 아니라면 해당과 같은 형태로 구성하셔야 확장성이나 호환성이 쉽게 구현이 가능합니다. input 도 이미지가 가능한데 굿이 변환하는것은 권장하지 않습니다.
<a href="http://naver.com"><button>네이버</button></a>

이렇게 해보세요
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
15년 전 조회 2,064
15년 전 조회 2,112
15년 전 조회 2,008
15년 전 조회 1,538
15년 전 조회 2,627
15년 전 조회 1,689
15년 전 조회 2,366
15년 전 조회 1,557
15년 전 조회 3,203
15년 전 조회 1,551
15년 전 조회 1,510
15년 전 조회 2,121
15년 전 조회 1,517
15년 전 조회 1,138
15년 전 조회 1,180
15년 전 조회 1,490
15년 전 조회 1,634
15년 전 조회 1,678
15년 전 조회 1,566
15년 전 조회 1,465
🐛 버그신고