0
사용자가 값을 입력하는 것을 잊었을 때 jwysiwyg iframe에 커서를 맞추고 싶지만 어떻게해야할지 모르겠습니다. 누군가 제발 도와 드릴까요?jwysiwyg 및 유효성 검사 문제 사용
사용자가 값을 입력하는 것을 잊었을 때 jwysiwyg iframe에 커서를 맞추고 싶지만 어떻게해야할지 모르겠습니다. 누군가 제발 도와 드릴까요?jwysiwyg 및 유효성 검사 문제 사용
우선, 자바 스크립트를 통해 마우스를 움직이는 메커니즘이 없습니다.
$(document).ready(function(){
$(".wysiwyg").find("iframe").load(function(){
var test = $(".wysiwyg").find("iframe").contents().find('body').html();
//do job with the content.
//Remember that jwysiwyg will produse some code even if it seems there is
//nothing.(couse the wysiwyg is base on browser behavor
});
});
:
은 (당신이 jQuery를 사용하는 경우) 위의 스크립트를 사용해야은 iframe의 내용에 액세스하려면
$(".wysiwyg").find("iframe").focus();
을이 스크립트를 사용 iframe에 초점을 맞추려면