Jquery, CSS, SetTimeOut, GravityForms
<p>I have this code where in I need to change the color of the border and labels to this kind of color. </p>

<p>The code I have is ... </p>

<pre><code>  &lt;script&gt; 
  $(document).ready(function(){

   $("#input_28_1").attr("disabled", true);
   $('#input_27_1').val("");
   $('#input_27_1_2').val("");
});
</code></pre>

<p></p>

<pre><code> &lt;script&gt;
   $(document).ready(function(){
           $("#gform_submit_button_27").click(function(e){

    var email1 = $('#input_27_1').val();
    var email2 = $('#input_27_1_2').val();

    //Oks na
    if (email1 == "" &amp;&amp; email2 == "")
    {
      setTimeout(function()
      {
           $( ".gfield_description" ).clone().appendTo( "#clone-email-error" );
           $("#input_27_1_2").css("border", "1px solid #ec5665");
           $("label").css("color", "#333333");

      },1000);
     }

    //Oks na
    else if (email1 != "" &amp;&amp; email2 == "")
    {
      setTimeout(function()
      {
           $( ".gfield_description" ).clone().appendTo( "#clone-email-error" );
           $("#input_27_1_2").css("border", "1px solid #ec5665");
           $("label").css("color", "#333333");

      },1000);
     }

    //Oks na
    else if (email1 == "" &amp;&amp; email2 != "")
    {
      setTimeout(function()
      {
           $("label").css("color", "#333333");
           $("#input_27_1_2").css("border", "1px solid #E8E8E7");

      },1000);
     }
  });  
</code></pre>

<p>});</p>

<p>I need to remove the setTimeout in order for the first text box and the second box to change color at the same time. But, whenever I try to remove the setTimeOut the .clone&amp;.append &amp; .css won't work. </p>

<p>Hope I get help. Thanks.</p>