Automated US State dropdown |
[eluser]Iverson[/eluser]
I got tired of recreating a dropdown so I made a view that I can just include in my application. You can use the following variables: Code: <?php This can easily be ported into a plugin or helper but I just didn't feel like it at the current moment
[eluser]PurdueKenny[/eluser]
Hey, thanks for this! Makes my life much easier; however, I'm getting an error saying that the element(); function is not found. Specifically on line 40 $select_open = '<select id="' . $id . '" name="' . $name . '"' . element('', $selected, '') . $class; Did I need to do something that I haven't done yet?
[eluser]Iverson[/eluser]
All you need to do is load the array helper. http://ellislab.com/codeigniter/user-gui...elper.html
[eluser]gscharlemann[/eluser]
Thanks for putting this together. You saved me a bunch of time. I noticed the setting: Code: $config['multiple'] = FALSE; |
Welcome Guest, Not a member yet? Register Sign In |