I am building my own widget. I have the following code set up for a textarea.
<textarea class="widefat" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>" type="text" /><?php echo $instance['text']; ?></textarea>
When i first load the widget, my text sits within the textarea. As soon as i hit the save button, the textarea clears and the updated text sits underneath the textarea box.
I would like the text to stay in the textarea at all times. Does anyone know how to achieve this.