hi I use below code for put thousand seprator for some textboxs:
<script type="text/javascript">
$(function () {
ApplyThousandSeparator();
});
function ApplyThousandSeparator() {
$('#Txtejare').priceFormat({
prefix: '',
thousandsSeparator: ',',
centsSeparator: ',',
limit: 12,
centsLimit: 0
});
}
function ApplyThousandSeparator() {
$('#Txtvadie').priceFormat({
prefix: '',
thousandsSeparator: ',',
centsSeparator: ',',
limit: 12,
centsLimit: 0
});
}
function ApplyThousandSeparator() {
$('#TxtPM').priceFormat({
prefix: '',
thousandsSeparator: ',',
centsSeparator: ',',
limit: 12,
centsLimit: 0
});
}
function ApplyThousandSeparator() {
$('#TxtPkol').priceFormat({
prefix: '',
thousandsSeparator: ',',
centsSeparator: ',',
limit: 12,
centsLimit: 0
});
}
//On UpdatePanel Refresh
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
ApplyThousandSeparator();
}
});
};
</script>
problem is that it just work for last textbox:
function ApplyThousandSeparator() {
$('#TxtPkol').priceFormat({
prefix: '',
thousandsSeparator: ',',
centsSeparator: ',',
limit: 12,
centsLimit: 0
});
}
it does't work for other textbox
best regards
neda