I created a hidden input in my existing form and trying to pass value using javascript but not able to find out the id of that hidden input
Here is my code
<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<%= label f, :title %>
<%= text_input f, :title %>
<%= error_tag f, :title %>
<%= label f, :description %>
<%= textarea f, :description %>
<%= error_tag f, :description %>
<%= label f, :address %>
<%= text_input f, :address %>
<%= error_tag f, :address %>
<%= hidden_input f, :image_public_id %>
<%= error_tag f, :image_public_id %>
<%= hidden_input f, :image_thumb_url %>
<%= error_tag f, :image_thumb_url %>
<%= hidden_input f, :image_url %>
<%= error_tag f, :image_url %>
<%= hidden_input f, :image_secure_url %>
<%= error_tag f, :image_secure_url %>
<div>
<%= submit "Save" %>
</div>
<% end %>
I’m not sure how can I set ids for last four fields