Hello,
In general, php gets a value from the database for
me and I need to select a menu item with a value of 1 for example
PHP is not available in template files
01
https://krogerfeedback.nl https://talktosonic.onl https://talktowendys.vip https://whataburgersurvey.onl
<script type="text/javascript" src="/templates/Default/items/jquery-2.1.4.min.js"></script>
02
<script type="text/javascript">
03
$('#selectpv').val(1).change();
04
</script>
05
<a class="astitle">Информация о себе</a>
06
<hr>
07
08
<form method="POST" enctype="multipart/form-data">
09
<div class="row">
10
<div class="row-caption" style="width:50%;">
11
<div class="row-caption-title">Кто может просматривать вашу страничку:</div>
12
13
</div>
14
<div class="row-field" style="width:40%;"><select id="selectpv" name="" class="sselect"><option value="0">Все пользователи</option><option value="1">Только друзья</option><option value="2">Никто</option></select></div>
15
</div>
16
17
</form>
This thing doesn't work, please help.
thanks
jackyjoy