Java script how to write an if condition passed to a $.modal()
<p>Hi I have wrote a method like this and i want to include a condition inside the string passed to the model and my method did not work . How to include an if condition?      </p>

<pre><code>$.modal("&lt;div id='edit_user_form' class='user_mange_popup' align='center'&gt;/'if(true){//do   something}'/&lt;/div&gt;")
</code></pre>
