Can jQuery add commas while user typing numbers?

Run the code snippet to see it work $(‘input.number’).keyup(function(event) { // skip for arrow keys if(event.which >= 37 && event.which <= 40) return; // format number $(this).val(function(index, value) { return value .replace(/\D/g, “”) .replace(/\B(?=(\d{3})+(?!\d))/g, “,”) ; }); }); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js”></script> <input class=”number”>

using Plupload with ASP.NET/C#

Here’s a full working example I wrote for you: <%@ Page Title=”Home Page” Language=”C#” %> <%@ Import Namespace=”System.IO” %> <script runat=”server” type=”text/c#”> protected void Page_Load(object sender, EventArgs e) { // Check to see whether there are uploaded files to process them if (Request.Files.Count > 0) { int chunk = Request[“chunk”] != null ? int.Parse(Request[“chunk”]) : … Read more

Jquery Chosen plugin – dynamically populate list by Ajax

You can dynamically populate a list via AJAX using the excellent Select2 plugin. From my answer to “Is there a way to dynamically ajax add elements through jquery chosen plugin?”: Take a look at the neat Select2 plugin, which is based on Chosen itself and supports remote data sources (aka AJAX data) and infinite scrolling.