Home › Forums › General Issues › Live update ACF fields form with values in labels › Reply To: Live update ACF fields form with values in labels
I got this working.
<form>
<label for="inputField01">Employee #01:</label>
<input type="text" id="inputField01" value="John Doe">
</form>
jQuery(document).ready(function($) {
$('#inputField01').on('input', function() {
$('label[for="inputField01"]').text('Employee #01: ' + $(this).val());
});
$('label[for="inputField01"]').text('Employee #01: ' + $('#inputField01').val());
});
Hope this helps.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.