Widget text updates outside of the textarea
-
Hi there
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.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Widget text updates outside of the textarea’ is closed to new replies.