Hi,<br><br>I&#39;m trying to conditionally hide a div tag. The only way I could get it working<br>is like this:<br><br>&lt;div mv:if=&quot;!@open_tasks.empty?&quot;&gt;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; <i>some html<br><br></i>&lt;/div&gt;
<br><br>&lt;div style=&#39;display:none&#39; mv:else=&quot;&quot;&gt;<br><br><i>&nbsp;&nbsp;&nbsp; same html</i><br><br>&lt;/div&gt;<br><br>However, I don&#39;t like it, as I have to repeat the same html twice. Is there a <br>better way of doing it?
<br><br>Another thing: Can I create a form_remote_tag with a parameter using <br>mv:form_remote? So far I only made it working using form_remote_tag<br>directly like this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; {{{ form_remote_tag :html =&gt; { :id =&gt; &#39;order_form_open&#39;&nbsp; } do}}}
<br><br>But I obviously like to avoid this as it shows up on the page.<br><br>Kind Regards,<br>Nico<br>