'How can i display the value of the range each time i change the value using stimulus

How can i display each range value using stimulus or else please, rails 7

 <%= form_tag trajets_path, method: :get do %>
            <%= label_tag 'Quand souhaitez vous partir ?'  %>
            <%= range_field_tag :time,
            params[:time],
            min: 0,
            max: 12,
            value: params[:time].to_i || 0,
            step: 1
            %>
            <%= submit_tag "Go", class: "btn btn-primary" %>
    <% end %>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source