This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadSVG( url ) { | |
// AJAX-y load the SVG icon | |
var req = new XMLHttpRequest(); | |
req.onload = serializeSVG; | |
req.open( 'get', url, true ); | |
req.send( null ); | |
} | |
function serializeSVG() { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select class="widefat" id="<?php echo $this->get_field_id( 'state' ); ?>" name="<?php echo $this->get_field_name( 'state' ); ?>" > | |
<option value="AL" <?php if ( $state == 'AL' ) echo 'selected'; ?>>Alabama</option> | |
<option value="AK" <?php if ( $state == 'AK' ) echo 'selected'; ?>>Alaska</option> | |
<option value="AZ" <?php if ( $state == 'AZ' ) echo 'selected'; ?>>Arizona</option> | |
<option value="AR" <?php if ( $state == 'AR' ) echo 'selected'; ?>>Arkansas</option> | |
<option value="CA" <?php if ( $state == 'CA' ) echo 'selected'; ?>>California</option> | |
<option value="CO" <?php if ( $state == 'CO' ) echo 'selected'; ?>>Colorado</option> | |
<option value="CT" <?php if ( $state == 'CT' ) echo 'selected'; ?>>Connecticut</option> | |
<option value="DE" <?php if ( $state == 'DE' ) echo 'selected'; ?>>Delaware</option> | |
<option value="FL" <?php if ( $state == 'FL' ) echo 'selected'; ?>>Florida</option> |
OlderNewer