ajax - Second list update based on first list change in Wp customizer -


i have 2 options list first 1 font second list font weights.i want run below php code each time when user change font.so second list update based on first list change.

$blog_font = get_theme_mod( 'body_google_fonts' ); $weights[$blog_font] 

i guessing done using ajax.i have little knowledge ajax tried implement whole night not working.please help.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -