jquery - using jwysiwyg and validation issues -
i'd focus cursor in jwysiwyg iframe when user forgets enter value i'm not sure how this. can please?
first of all, there no mechanism moving mouse via javascript.
to focus in iframe use script (if use jquery)
$(".wysiwyg").find("iframe").focus();
to access content of iframe have use above script :
$(document).ready(function(){ $(".wysiwyg").find("iframe").load(function(){ var test = $(".wysiwyg").find("iframe").contents().find('body').html(); //do job content. //remember jwysiwyg produse code if seems there //nothing.(couse wysiwyg base on browser behavor }); });
Comments
Post a Comment