title: Create a wordpress widget with multiple textarea
body: <pre><code>class ad_widget extends WP_Widget {
  function __construct() {
      $widget_ops = array( 'classname' =&gt; 'ad-widget-container', 'description' =&gt; __( ' Ad WIDGET' ) );
      parent::__construct( 'ad-widget', __( 'Ad widget', 'test' ), $widget_ops );
  }
  function widget( $args, $instance ) {
      extract( $args, EXTR_SKIP );
      $title = empty( $instance['title'] ) ? '' : apply_filters( 'widget_title', $instance['title'] );
      $text = empty( $instance['text'] ) ? '' : apply_filters( 'widget_text', $instance['text'] );
      echo $args['before_widget'];
      if ( $title )
          echo $args['before_title'] . $title . $args['after_title'];
  
      echo '&lt;div class="cutom-widget"&gt;';
         echo $text;
      echo '&lt;/div&gt;';
      echo $args['after_widget'];
  }
  function update( $new_instance, $old_instance ) {
      $instance = $old_instance;
      $instance['title'] = strip_tags($new_instance['title']);
      $instance['text'] =  $new_instance['text'];
      return $instance;
  }    
  function form( $instance ) {
      $instance = wp_parse_args( (array) $instance, array( 'title' =&gt; '' ) );
      $title = esc_attr( $instance['title'] ); 
      $text = esc_textarea($instance['text']); ?&gt;
      &lt;p&gt;
         &lt;label for="&lt;?php echo $this-&gt;get_field_id( 'title' ); ?&gt;"&gt;&lt;?php _e( 'Title:', 'test' ); ?&gt;&lt;/label&gt;
          &lt;input class="widefat" id="&lt;?php echo $this-&gt;get_field_id( 'title' ); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name( 'title' ); ?&gt;" type="text" value="&lt;?php echo $title; ?&gt;" /&gt;
          &lt;textarea class="widefat" rows="16" cols="20" id="&lt;?php echo $this-&gt;get_field_id('text'); ?&gt;" name="&lt;?php echo $this-&gt;get_field_name('text'); ?&gt;"&gt;&lt;?php echo $text; ?&gt;&lt;/textarea&gt;
      *&lt;a&gt;Add more text area&lt;/a&gt;
      &lt;a&gt;delete text area &lt;/a&gt;*
      &lt;/p&gt;&lt;?php
  }
  </code></pre>
  
  <p>}
  This is a simple widget with a text-box and text-area.I need something like when i click on "add more text area" it adds a textarea with different id's and saves different values.</p>