I new to clojurescript and i thought i would take a simple example
like http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onclick

it has javascript that does the following:

<button
onclick="document.getElementById('field2').value=document.getElementById('field1').value">Copy
Text</button>

i created the following clojurescript

(defn ^:export copytext []
  (let [e (dom/getElement "field2")]
    (doto e (dom/setTextContent (.value (dom/getElement "field1"))))))

to set the input text field2.

I'm not seeing any errors on the console, but i'm also not seeing the
text being
copied from field1 to field2.

thanks in advance for pointers on how to get this working.

-- 
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

Reply via email to