<script type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script>
<script>
//<![CDATA[
bkLib.onDomLoaded(function() {
new nicEditor().panelInstance('area1');
});
$( ".submitCompose" ).click(function() {
var areaText=$('textarea#area1').val();alert(areaText);
});
</script>
我可以使用jquery
获取textarea编辑器框值“area1”是textarea id
答案 0 :(得分:0)
INSERT INTO FilmTimes(FilmTime, FilmDetails_FilmID) SELECT '11:00', FilmID FROM FilmDetails
var nicE = new nicEditors.findEditor('area1');
question = nicE.getContent();
是您的textarea ID