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,114
15년 전 조회 2,157
15년 전 조회 2,044
15년 전 조회 1,575
15년 전 조회 2,667
15년 전 조회 1,745
15년 전 조회 2,412
15년 전 조회 1,596
15년 전 조회 3,247
15년 전 조회 1,602
15년 전 조회 1,546
15년 전 조회 2,156
15년 전 조회 1,553
15년 전 조회 1,175
15년 전 조회 1,227
15년 전 조회 1,533
15년 전 조회 1,669
15년 전 조회 1,718
15년 전 조회 1,603
15년 전 조회 1,496