Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Make textfield only accept numberic values

Posted on July 3, 2013October 26, 2015 By David Kittell
$(document).ready(function() {
	$(".numbersonly").keyup(function (event) {
				var value = jQuery(this).val();
				value = value.replace(/[^0-9]+/g, '');
				jQuery(this).val(value);
			});
});
Originally Posted on July 3, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code jQuery

Post navigation

Previous post
Next post

Related Posts

Export To Excel

Posted on September 25, 2013October 26, 2015

Add GridView, Datasource, and Button <%@ Page Language="C#" AutoEventWireup="true" CodeFile="exporttest.aspx.cs" EnableEventValidation="false" Inherits="ExportTest" %> <form id="form1" runat="server"> <asp:gridview runat="server" id="gvExport" allowpaging="True" autogeneratecolumns="False" datakeynames="id" datasourceid="dsExport"> </asp:gridview> <asp:sqldatasource id="dsExport" runat="server" conflictdetection="CompareAllValues" connectionstring="<%$ ConnectionStrings:DbConnection %>" selectcommand="SELECT top 100 * FROM Users"> </asp:sqldatasource> <asp:button id="btnExport" runat="server" onclick="Button1_Click" text="Export To Excel" /> </form> using System; using…

Read More

JSON – Pull #FIRSTInspires data from @thebluealliance API

Posted on April 16, 2018March 9, 2020

Working on a couple tasks that need team information so I registered a read-only API key and started pulling down data for an offline app. Initially populating data using bash and jq. This may be cleaned up in time but it works for my purpose for now. Currently I’m just…

Read More

Folder Delete Everything

Posted on December 14, 2013October 26, 2015

Careful with this function as it can really do some serious damage if you choose the wrong folder. ‘Folder Delete Everything – Start Private Sub DeleteDirectory(ByVal dir_name As String) Try Dim file_name As String Dim files As Collection Dim i As Integer ‘ Get a list of files it contains….

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes