I have this elm-html element:
Html.a [href "#menu-toggle", class "btn btn-default", id "menu-toggle" ]
[ text "Toggle Menu" ]
which is a direct translation from:
<a href="#menu-toggle" class="btn btn-default" id="menu-toggle">Toggle
Menu</a>
and shows up in the browser as:
<a href="#menu-toggle" class="btn btn-default" id="menu-toggle">Toggle
Menu</a>
But the same javascript that works on the html doesn't work on the elm code:
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
Is plain js/jquery unable to interact with elm elements as it would with
html elements?
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.