EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 27, 2024, 04:39:41 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Seprate each 3 numbers with comma in easyui-datagrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: Seprate each 3 numbers with comma in easyui-datagrid (Read 6959 times)
alisanie
Newbie
Posts: 7
Seprate each 3 numbers with comma in easyui-datagrid
«
on:
December 01, 2014, 06:49:20 AM »
Hi
I have a easyui-datagrid and in one column I want to seprate each 3 numbers with comma!
Any Idea
Cheers
«
Last Edit: December 01, 2014, 07:01:29 AM by alisanie
»
Logged
alisanie
Newbie
Posts: 7
Re: Seprate each 3 numbers with comma in easyui-datagrid
«
Reply #1 on:
December 01, 2014, 04:51:47 PM »
Code:
function formatPrice(val,row){
return val.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
}
Thats it
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...