■
コンタクトフォーム7
<p>郵便番号<br />
[text zip1 3/3 id:zip1] - [text zip2 4/4 id:zip2] </p>
[text prefecture 80/ id:prefecture]</p>
<p>市区町村<br />
[text city 80/ id:city] </p>
<p>町域大字・番地<br />
[text street 80/ id:street] </p>
-------
function add_head_link() {
echo "
jQuery(function($){
$(\"#zip\").attr('onKeyUp', 'AjaxZip3.zip2addr(this,\'\',\'address\',\'address\');');
})";
echo '</script>';
}
add_action('wp_head', 'add_head_link');
-------
function add_head_link() {
echo "
jQuery(function($){
$(\"#zip\").attr('onKeyUp', 'AjaxZip3.zip2addr(this,\'\',\'address\',\'address\');');
$(\"#zip2\").attr('onKeyUp', 'AjaxZip3.zip2addr(\'zip1\',\'zip2\',\'prefecture\',\'city\',\'street\');');
});";
echo '</script>';
}
add_action('wp_head', 'add_head_link');