Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试获取 wordpress 帖子的帖子标题,然后再将其提交以供发布或待审核等。我正在使用图像中显示的代码。请看图片。
尝试:
jQuery(document).ready(function($){ $('#publish').click(function(event){ event.preventDefault(); var title = $('#title').val(); /** do whatever with the title here */ }); });