EE 1.6.x US States select Plugin
Posted By: Rodrigo Passos on October 18, 2010
After writing dozen of EE implementations that require US states in its forms, I've finally decided to write an official plugin. I haven't found one on google (not that I've spent a lot of time looking) so the next logical step was to write one.
This is what I came up with:
download plugin
Usage:
{exp:usstates name="state" id="state" class="" state_abbr_value="true" state_abbr_label="false"}
Parameters:
----------------
element_name=""
Optional. Defaults to "state". Will set the <select name="state">
element_id=""
Optional. Defaults to "state". Will set the <select id="state">
element_class=""
Optional. Will set the <select class="class">
state_abbr_value=""
Optional. Defaults to "true". Will set the value on <option value="value">label</option> with a 2 digit state abbreviation if true and full state's name if false.
state_abbr_label=""
Optional. Defaults to "true". Will set the label on <option value="value">label</option> with a 2 digit state abbreviation if true and full state's name if false.
Return to the blog listing
Last 5 Blog Posts
Most Popular Posts