Can we assign value to grafana variable from Jquery used in Text panel

Can we assign value to grafana variable from Jquery used in Text panel