Instead of having to set the same dynamic event to every element every time, can I just write script to set App Connect Dynamic Event using Selector ala jquery $(‘element-or-attribute’) ?
Example, using App Connect:
dmx-on:keyup="form_name.inp_name.setValue(value.replace(/\D/g, '').replace(/([0-9])([0-9]{2})$/, '$1.$2').replace(/\B(?=(\d{3})+(?!\d)\.?)/g, ','))"
Example, using Jquery:
$('[data-money]').keyup(function(event) { $(this).val(function(index, value) { return value .replace(/\D/g, "") .replace(/([0-9])([0-9]{2})$/, '$1.$2') .replace(/\B(?=(\d{3})+(?!\d)\.?)/g, ",") ; }); });
<input type="text" data-money>
I want to achieve just as like the above script, but only using App Connect not Jquery. Is there such function in App Connect or should this be a feature request.
Thanks in advance!
Last updated: