I have an html.erb file which includes the following
<%= submit_tag "Locate", :disabled => true %>
I also have <%= text_field_tag 'locationPOS', "", :disabled => true %>
which has its value updated when the user click on the google map present on the page (from a separate javascript file) by locpos.value = place.address;
I would like to enable the submit_tag
only when there is text within the 'locationPOS'
text_field_tag
.
Any suggestions please?