Skip to content

@kovshenin /reproduce-23684.php
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<?php
/**
* Plugin Name: My Plugin
*/
function my_admin_enqueue_scripts() {
wp_enqueue_script( 'jquery-ui-button' );
}
add_action( 'admin_enqueue_scripts', 'my_admin_enqueue_scripts' );
function my_admin_footer() {
?>
<script>
jQuery(document).ready(function($){
$('#my-radio').buttonset();
});
</script>
<div id="my-radio">
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
</div>
<?php
}
add_action( 'admin_footer', 'my_admin_footer' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.