I have the following code:
$(document).ready(function() {
var phone_number = $('input[name=phone_number]').val();
alert(phone_number);
});
The problem is that phone_number always have value on moment when a page was loaded. User may change phone number on the input fied - but script always gets obsolete value. How do I fix this issue?
Thanks a lot for the help!