I want change hidden input value from other input value.
This is code:
$(document).ready(function() {
$(\'input:text[name="'.$data['name'].'"]\').keyup(function() {
$(\'input:hidden[id="'.$data['name'].'"]\').val( "'.$data['id'].'," + $(this).val() );
});
});
This code work but i don't know how to change from keyup to always set value even if he does not edit the field and the field contains data from the database If I don't edit the field, it won't load anything into the hidden field
I entered various functions in various ways and nothing
to always set value even if he does not edit the field; why would it need to be updated if the original is not edited? What does your html look like? You should be able to initialize the value of the hidden input the same way you do the text input.