Skip to content

Instantly share code, notes, and snippets.

@raek
Created May 25, 2011 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raek/990033 to your computer and use it in GitHub Desktop.
Save raek/990033 to your computer and use it in GitHub Desktop.
(defn abc [node]
(if (= (get-in node [:attrs :value]) "c")
((set-attr :selected "selected") node)
node))
(html/at rr [(html/id= "one")] #(html/at % [:option] abc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment