RoR Helper - Copy Input Value if Empty


/ Published in: Rails
Save to your folder(s)

I needed to copy the value of one field to a couple of others in case users decided to forget to fill them out. Using jQuery and added it to a helper because I was using in multiple places. Created variables to make it more readable.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.