I’ve try to use this jquery function, but I doing somethings wrong
jQuery:
<script>jQuery(function($){
$('select[name="menua1"]').change(function(){
//set text of hidden field for email template purposes
if ('1' == $(this).val()) {
$('#topic').val('aaaaaa');
} else if ('2' == $(this).val()) {
$('#topic').val('bbbbbbb');
} else if ('3' == $(this).val()) {
$('#topic').val('ccccccccc');
} else if ('Press Inquiry' == $(this).val()) {
$('#topic').val('Press Inquiry');
}
});
});</script>
Form:
[select menua1 class:PPP"a|1" "b|2" "c|3"]
[text topic class:PPP]
<p>[submit "Wy?lij"]</p>
and message:
[menua1]
[topic]
But topic is always empty.