Combining multiple inputs in live preview
-
Hi, in the Customizer I have 5 fields
- name
- city
- state
- zip
- street
Once any of these get updated I want to update my code with all five variables
<address> name<br> city, state, zip<br> street </address>
how can I do that? I only used to update one variable at a time using
wp.customize('city', function(value) { value.bind(function(to) { $('city').html(to); }); });
but I can’t target a specific variable in this case so I have to generate the whole address.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Combining multiple inputs in live preview’ is closed to new replies.