รวมโค้ด AJAX Javascript Library jQuery Framework ต่างๆ ที่ใช้ คู่กับ php Script Ajax โค้ด Ajax Prototype UI แนะนำได้ที่นี่
Moderator: mindphp, ผู้ดูแลกระดาน
-
jataz2
- PHP Super Member

- โพสต์: 275
- ลงทะเบียนเมื่อ: 22/02/2011 11:48 am
โพสต์ที่ยังไม่ได้อ่าน
โดย jataz2 »
โค้ด html
โค้ด: เลือกทั้งหมด
<input type="text" id="rate2" onfocusout="thousandsSeparators(this.value);"></input>
โค้ด javascript
โค้ด: เลือกทั้งหมด
function thousandsSeparators(str) {
try
{
transactionAmount = str;
var numParts = transactionAmount.toString().split(".");
numParts[0] = numParts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
return numParts.join(".");
}
catch (error)
{ }
}
-
-
- 4 ตอบกลับ
- 4505 แสดง
-
โพสต์ล่าสุด โดย adinan49
13/01/2022 6:24 pm
-
-
- 1 ตอบกลับ
- 3864 แสดง
-
โพสต์ล่าสุด โดย บัวบุญ จันทะโคตร
17/08/2017 3:05 pm
-
-
- 1 ตอบกลับ
- 2615 แสดง
-
โพสต์ล่าสุด โดย pond
10/08/2016 5:22 pm
-
-
- 1 ตอบกลับ
- 6342 แสดง
-
โพสต์ล่าสุด โดย ishaD
17/08/2023 10:54 pm
-
-
- 0 ตอบกลับ
- 770 แสดง
-
โพสต์ล่าสุด โดย Buck Kittisak
14/05/2024 1:01 pm
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 1