Move zip next to state in WPForms

jQuery(function($){
// Move zip in form
$('.wpforms-field-address').each(function(){
var $this = $(this),
$zipField = $this.find('.wpforms-field-row-block').last(),
$thirdRow = $this.find('.wpforms-field-row:nth-last-child(2)');
$zipField.appendTo($thirdRow).removeClass('wpforms-first');
$thirdRow.find('.wpforms-one-half').toggleClass('wpforms-one-half wpforms-one-third');
$this.find('.wpforms-field-row').last().remove();
});
});
view raw global.js hosted with ❤ by GitHub

js WPForms

Bill Erickson

Bill Erickson is a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk