title: Jquery read <?php echo get_option('value'); ?> and not the value
body: <p>This is the php function present in function.php :</p>
  
  <pre><code>&lt;?php
  add_action('admin_menu', 'baw_create_menu');
  function baw_create_menu() {
      add_menu_page('Bubbles', 'Bubbles', 'administrator', __FILE__, 'baw_settings_page');
      add_action( 'admin_init', 'register_mysettings' );
  }
  function register_mysettings() {
      register_setting( 'baw-settings-group', 'category' );
  }
  function baw_settings_page() {
  ?&gt;
  &lt;div class="wrap"&gt;
  &lt;form method="post" action="options.php"&gt;
      &lt;?php settings_fields( 'baw-settings-group' ); ?&gt;
      &lt;?php do_settings_sections( 'baw-settings-group' ); ?&gt;
      &lt;textarea style="width:400px" name="category"&gt;&lt;?php echo get_option('category'); ?&gt;&lt;/textarea&gt;
  
      &lt;?php submit_button(); ?&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>And I want to get the string :</p>
  
  <pre><code>  var category = "&lt;?php echo get_option('category'); ?&gt;";
    alert(category);
  </code></pre>
  
  <p>But the alert gives me my php code: <code>&lt;php echo get_option ('category');?&gt;</code> And not the string such as "banana"</p>