change wordpress customizer input with js

I want to change wp customizer input field value with js.
When I do something like this:

$('#customize-control-blogname').find('input').val('Test');

input gets that text (“Test”) but when I hit “Save” old value gets saved not “Test”. Like change is not registered by wp.

Related posts

Leave a Reply