Hi,<br><br>I'm trying to conditionally hide a div tag. The only way I could get it working<br>is like this:<br><br><div mv:if="!@open_tasks.empty?"><br> <br> <i>some html<br><br></i></div>
<br><br><div style='display:none' mv:else=""><br><br><i> same html</i><br><br></div><br><br>However, I don'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> {{{ form_remote_tag :html => { :id => 'order_form_open' } do}}}
<br><br>But I obviously like to avoid this as it shows up on the page.<br><br>Kind Regards,<br>Nico<br>