jquery 버튼 클릭시 텍스트값 버튼값 얻기
웹관련정보2014. 5. 27. 16:46
<script>
$(document).ready(function() {
$(".get_comp").bind("click",function(){
})
$( "#foo" ).bind( "click", function() {
what_company = $('.where_call').val();
var whatcomp = what_company;
alert(what_company);
alert( $( this ).text() );
});
});
</script>
<input name="where_call" class="where_call" type="text" value="input 값"/>
<button id="foo">버튼</button>
'웹관련정보' 카테고리의 다른 글
이미지 업로드 사이트 링크로 이미지 업로드 하는 방법 (0) | 2014.06.24 |
---|---|
big buck bunny 빅벅버니 테스트 동영상 (0) | 2014.06.06 |
php 랜덤 값 이름 중첩 제거 (0) | 2014.05.27 |
jquery 클릭시 id 값 얻기 name값 얻기 (1) | 2014.05.27 |
개인정보 형사처벌규정 (2) | 2014.05.25 |