A Basic Javascript Question
<p>I am using Uploadify Plugin to upload images, the parameter response of the uploadify function will hold the value 1 if something goes wrong.</p>

<p>i did something like this and works perfectly fine. </p>

<pre><code>if(response != 1) {
     $('#t_fileUploadName').append('&lt;p&gt;'+response+'&lt;p/&gt;');
     $("#t_fileUploadField").append("&lt;input type='hidden' name='nstitle' value='" + response + "' /&gt;"); 
     $("#t_fileUploadBtn").remove();
      }
</code></pre>

<p>now i want to specify one more javascript condition, if the response is equal to one then it should print the following html  div</p>

<pre><code> &lt;div id="dialog" title="Incorrect File Dimension" style=" display:none;"&gt;
            &lt;p&gt;Please enter the correct file dimension!&lt;/p&gt;
        &lt;/div&gt;
</code></pre>

<p>i tried using this code and it is not working. </p>

<pre><code>if(response == 1) {
      $("#divmsg").append("&lt;div id='dialog' title='Incorrect File Dimension' style=' display:none;'&gt;&lt;p&gt;Please Enter The Correct File Dimension, or Refer the Document&lt;/p&gt;&lt;/div&gt;"); 
     }
</code></pre>

<p>what is wrong with the above syntax???</p>
