How can I add a radio button in my wordpress widget form? I have been able to add input fields that gets saved and works fine. But I am having trouble with radiobuttons. Anyone?
This is my code for input field:
<p><label for="<?php echo $this->get_field_id('id'); ?>"><?php _e('Video ID:'); ?>
<input class="widefat" id="<?php echo $this->get_field_id('id'); ?>"
name="<?php echo $this->get_field_name('id'); ?>"
type="text" value="<?php echo $id; ?>" /></label></p>
and this is my radio button
<input type="radio" name="video_size" value="small"> Small<br>
<input type="radio" name="video_size" value="full" checked> Full