I have a Clojure table in Hiccup that is populated from a database. In one column I have status which is set from the database.
What I want to do is be able to click on this value, and have a dropdown menu appear where you can pick a new status from the dropdown menu.
I am confused on how to do this. I have tried using a form with a placeholder where the value comes from the database but when I click on the status in the browser, I have to type instead of having a dropdown. How do I get the dropdown?
(defn row-data [data]
(for [x data]
(let [[entity-id id date text status] job]
(hiccup/html
[:tr
[:td date]
[:td id]
[:td text]
[:form {:method :post}
[:td
[:input {:type :text :placeholder status}]]]
]))))
Any help would be much appreciated. Thanks