Write some SoJquery PHP Form Field Amemdmentsftware

I have a form which is coded in php and one field is set only to show if xxx

Example :

If people select country = United states, then the STATE option will show -

<div class="fieldboxes">

<label for "country" class="createaccount">Country:</label>

<select name="country" id="country" class="createaccountBox" >

<option value="44">China</option>

<option value="51">Costa Rica</option>

<option value="204">Switzerland</option>

<option value="206">Taiwan</option>

<option value="209">Thailand</option>

<option value="215">Turkey</option>

<option value="222">United Kingdom</option>

<option value="223">United States</option>

<option value="225">Uruguay</option>

<option value="229">Venezuela</option>


<div id="statediv">

<div class="fieldboxes">

<label for "state" class="createaccount">State</label>

<select name="state" id="state" class="createaccountBox" >

<option value="">-- Select Your State --</option>

<option value="AL">Alabama</option>

<option value="AK">Alaska</option>

<option value="AZ">Arizona</option>





#statediv {




Current jquery =

<script type="text/javascript">


$('select[name=country]').change(function () {

if ($(this).val() == '223') {


} else {






So - you can run this on your local machine, whereever and see that when people select United States, then the State option will show. (The options are actually a full list of countries and a full list of states, for reasons of space and readability, I have removed most)

My problems are -

The form posts back to itself to check the values (onSubmit="return check_form(create_account); ) and if there are errors then returns the page again, the state field HIDES again - but if United States is already selected - the state field is hidden and no way to show it again, unless the country is reselected. Which of course, people wouldnt know to do that.

So somehow, the state fields needs to be = if select name country = 223 then always show the state field.

And then, JUST for people who have selected 223 United states - the selection of state field must happen.

Obviously I am looking for a quick answer from someone with the knowledge already who can work in the likes of jsfiddle. I am NOT looking for anyone who doesnt know the answer right now. Lowest quote wont win, it is who can get this done with no messing.

Habilidades: Formulários Eletrônicos, HTML, jQuery / Prototype, PHP, Arquitetura de software

Veja mais: write my name in style, work in alaska, this class jquery, div problems, alaska list, val , uruguay, always write, alaska, php javascript class, kingdom likes, show hide form javascript, jquery write html, likes turkey, 204, javascript write display, div show hidden, jquery country state, hide div javascript, hide show hidden, text form field option, javascript change div class, php hidden fields, php html display, jquery change class select option

Acerca do Empregador:
( 20 comentários ) Lincolnshire, United Kingdom

ID do Projeto: #6791821

Concedido a:


I can help you. _________________________________________________________________________________________________________________________________________________________________________________________________________ Mais

$15 USD em 1 dia
(183 Comentários)

5 freelancers estão ofertando em média $22 para esse trabalho


Hello Sir, I am ready to handle right away. The perfect way s when the page repost to same we will check if the country is already selected we wil will show the state select list which will be shown, by making an Mais

$30 USD in 0 dias
(289 Comentários)

Hello, I'm ready to Solve that, but it will not be only JS, but PHP as well. So, the php file that include that form is required. Thank you ======================================== =========================== Mais

$25 USD em 1 dia
(213 Comentários)

A proposal has not yet been provided

$25 USD in 0 dias
(4 Comentários)

Hi, This is Amit a freelancer web developer. I have an expertise in cakephp, opencart, YII, javascript, Ajax, jQuery,Html5, CSS3, Bootstrap,Payment Methods (PayPal, Stripe, Cc-avenue), Mailchimp API, Responsive etc.. h Mais

$15 USD em 1 dia
(2 Comentários)