Tag: Javascript
-
Easy Pop-Ups with JQuery
Create a popup and position it dynamically using Jquery.
-
Wrapping HTML Elements with a Parent DIV using jQuery
Add a target element to a parent DIV dynamically using jQuery.
-
YouTube Video Event Tracking
Easily Track YouTube Videos with Google Analytics has Javascript code available to perform tracking on YouTube video events in Google Analytics. I encountered a problem where the code didn’t work with YouTube videos already embedded with iframes. The YouTube JavaScript Player API Reference says that it should be able to handle YouTube videos embedded in…
-
Overwriting the Browser Confirm pop up using jQuery
You can overwrite the default confirm function using the following snippet of code which combines jQuery UI and Bootstrap to create a nice looking confirm box that is easier to read.
-
Handling Default Values in Form Elements (with Javascript)
You can add some fancy Javascript functionality to your forms by handling how form elements behave when a user focuses and blurs focus on different elements.
-
Email Parser
A form and downloadable script that parses the emails from a list of email addresses and names (or any text actually).
-
Valid Area Codes for the US
A javascript array of valid area codes in the US and outlying territories taken from http://en.wikipedia.org/wiki/Numbering_plan_area var areacodes = Array(205, 251, 256, 334, 659, 938,907, 250,480, 520, 602, 623, 928,327, 479, 501, 870,209, 213, 310, 323, 341, 369, 408, 415, 424, 442, 510, 530, 559, 562, 619, 626, 627, 628, 650, 657, 661, 669, 707, 714,…