O
O
olezhenka2018-02-07 21:59:00
JavaScript
olezhenka, 2018-02-07 21:59:00

How to set the same value in different forms?

I have a couple of forms. They need to add a hidden input with the same value. I won't copy and paste it into every form, will I? You can take it somewhere, but with the condition that the forms take away its value.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima, 2018-02-07
Dolgoter @DDolgy

$(document).ready(function(){
    $('form').append('<input type="hidden" value="bla bla">');
  });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question