tinyMCE 편집기 (WordPress) 내에 <! - nextpage-- > 개의 주석 태그 수를 계산하려고합니다.tinyMCE 편집기에서 jQuery N 요소의 수를 얻습니다.
내가 뭘 잘못하고 있니?
jQuery(document).ready(function($)
{
//find the count of nextpage elements
var n = jQuery("#content").find("<!--nextpage-->").length;
alert(n);
});
댓글 습관을 찾아 DOM 및 jQuery를에 포함되지 않습니다. – techfoobar