카테고리 없음
jquery 팝업
[czar]
2010. 3. 13. 08:48
팝업창에서 부모창에 값 셋팅하기.
$(opener.document).find('#sendMailYN').val( "1" );
팝업창에서 부모창의 input 라디오 타입을 검색하면서
값이 2일때 체크해준다.
$(opener.document).find(':radio').each( function(){
if( $(this).val() == "2" ) $(this).attr('checked', 'checked');
});
http://boedesign.com/demos/gritter/
$(opener.document).find('#sendMailYN').val( "1" );
팝업창에서 부모창의 input 라디오 타입을 검색하면서
값이 2일때 체크해준다.
$(opener.document).find(':radio').each( function(){
if( $(this).val() == "2" ) $(this).attr('checked', 'checked');
});
http://boedesign.com/demos/gritter/