I hope someone can help me on this. 

I'm using domina <https://github.com/levand/domina> and clojurescript in my 
website project. My problem is i try to make 3 click event in 3 different 
button.

I attach the code snippet below, 

     (defn html1 [] (dom/set-inner-html! (dom/by-id "idofhtml") "<h1> lorem 
ipsum </h1>")) (defn ^:export init [] (when (and js/document (.-getElementById 
js/document)) (ev/listen! (dom/by-id "link1") :click html1) (ev/listen! 
(dom/by-id "link2") :click html2) (ev/listen! (dom/by-id "link3") :click 
html3))) (set! (.-onload js/window) init)

Problem is only :


 (ev/listen! (dom/by-id "link1") :click html1)


working, the other two :


 (ev/listen! (dom/by-id "link2") :click html2)
 (ev/listen! (dom/by-id "link3") :click html3)


Doesn't work, Thank you in advance, appreciate any help

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to