Hi guys i'm looking for the right script for price input field with comma thousand separate
Ex: 2500000 get 2,500,000
<div class="header-search-box-price-min columns-3">
<input placeholder="<?php osc_esc_html(_e('Price', 'ctg_housing')) ; ?> <?php osc_esc_html(_e('Min', 'ctg_housing')) ; ?>" type="text" id="priceMin" name="sPriceMin" value="<?php echo osc_esc_html(osc_search_price_min()); ?>" onkeypress="return isNumber(event)" />
</div>
<div class="header-search-box-price-max columns-3">
<input placeholder="<?php osc_esc_html(_e('price', 'ctg_housing')) ; ?> <?php osc_esc_html(_e('Max', 'ctg_housing')) ; ?>" type="text" id="priceMax" name="sPriceMax" value="<?php echo osc_esc_html(osc_search_price_max()); ?>" onkeypress="return isNumber(event)" />
</div>
I hope someone can help!
Thanks