1

在此处输入图像描述

我正在尝试获取 wordpress 帖子的帖子标题,然后再将其提交以供发布或待审核等。我正在使用图像中显示的代码。请看图片。

4

1 回答 1

2

尝试:

jQuery(document).ready(function($){
  $('#publish').click(function(event){
      event.preventDefault();
      var title = $('#title').val();
      /** do whatever with the title here */
      });
 });
于 2013-08-02T17:48:09.330 回答