Let's say I have a form built with Rails form builder. It has a text field, and I want to dynamically update the input field's value using AJAX and turbo streams.
Is it possible to update the same text field's value without replacing it with a newly created text field using the text_field
helper from the turbo stream view?
This Gorails tutorial has a similar use case, but he is updating the values of a select tag. So, he just updated the options of the select tag using options_for_select
helper so the select field remains on the DOM as it is, while only the options are replaced.