Prior to 2.3 we have something like this:
HTML:
Read more
Читать далее...
HTML:
Код:
<xf:js>
$(function()
{
$('.js-presetChange').change(function(e)
{
var $ctrl = $(this),
value = $ctrl.val(),
$form = $ctrl.closest('form');
if (value == -1)
{
return;
}
$form.find($ctrl.data('start') || 'input[name=start]').val(value);
$form.find($ctrl.data('end') || 'input[name=end]').val('')...
Read more
Читать далее...