Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

phone number with dashes

function addDashes(f)
{
    f_val = f.value.replace(/D[^.]/g, "");
    f.value = f_val.slice(0,3)+"-"+f_val.slice(3,6)+"-"+f_val.slice(6);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: filter through date in mongooes 
Javascript :: express add delay 
Javascript :: MAC addresses in JavaScript 
Javascript :: update node js 
Javascript :: use font awesome in react native 
Javascript :: codeigniter csrf token ajax 
Javascript :: js settimeout wait element 
Javascript :: how to make nodejs more secure 
Javascript :: how to show selected value in select box using jquery 
Javascript :: date format french js 
Javascript :: Pass Props to a Component Using default parameters in react 
Javascript :: generator function fibonacci 
Javascript :: Divide the number in js 
Javascript :: ternary function javascript 
Javascript :: rock paper scissors javascript 
Javascript :: comments js 
Javascript :: vuejs router params 
Javascript :: Check for a Null or Empty String in JavaScript 
Javascript :: Scroll elementleft using js 
Javascript :: draw border on canvas 
Javascript :: react native password 
Javascript :: javascript get form input data 
Javascript :: jquery multiple div click 
Javascript :: React Helmet with SSR integration 
Javascript :: sequelize association helper methods 
Javascript :: js bitwise operators 
Javascript :: discord.js edit embed message 
Javascript :: replace all javascript 
Javascript :: the sum of all first n natural numbers js 
Javascript :: icon in react native 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =