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?
$.modal("<div id='edit_user_form' class='user_mange_popup' align='center'>/'if(true){//do something}'/</div>")
dOes this solve your problem ?