solved: How disable form submit button after clicking? (the old "disable-with")

When a form is submitted I'd like to change the form button test. Olden days was done with 
data: {disable_with: "searching..."}
 
How is that be done now, in JSP?
actually that works:

                %button{class: "btn btn-primary", type: "submit", data: {disable_with: "wait"} }
                  = render_svg "icons/search", styles: "fill-current icon mr-4"

I had to reboot the local server
Notifications
You’re not receiving notifications from this thread.
Subscribe
© 2021 GoRails, LLC