please help me
i'm trying
in the hooks/footer-extras.php file:
Code: Select all
<script>
$j(function(){
AppGini.numericOnly = function(fieldname){
setInterval(function(){
var field = $j('#' + fieldname), val = field.val();
if(val == parseFloat(val)) return;
val = parseFloat(val.replace(/[^\d.-]/g,''));
if(isNaN(val)){ field.val(''); return; }
field.val(val);
}, 1000);
};
})
</script>
<div class="navbar navbar-default navbar-fixed-bottom">
<nav class="" role="navigation">
<p class="navbar-text"><small>
Developed by
</small></p>
</nav>
</div>
Code: Select all
$j(function(){
AppGini.numericOnly('opd_fee');
AppGini.numericOnly('rbs_fee');
})
Uncaught TypeError: AppGini.numericOnly is not a function
source link https://bigprof.com/blog/appgini/custom ... n-a-field/
it is not working to me , help me please