function GetInnerText(elem) {
return (typeof(elem.innerText) != 'undefined') ? elem.innerText :
(typeof(elem.textContent) != 'undefined') ? elem.textContent : elem.innerHTML.replace(/]+>/g, '');
}
I’m tryin’ ta think but nuthin’ happens!
function GetInnerText(elem) {
return (typeof(elem.innerText) != 'undefined') ? elem.innerText :
(typeof(elem.textContent) != 'undefined') ? elem.textContent : elem.innerHTML.replace(/]+>/g, '');
}
RegExr: Online Regular Expression Testing Tool
bew*
b[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}b is a more complex pattern. It describes a series of letters, digits, dots, underscores, percentage signs and hyphens, followed by an at sign, followed by another series of letters, digits and hyphens, finally followed by a single dot and between two and four letters. In other words: this pattern describes an email address.
Farbtastic is a jQuery plug-in that can add one or more color picker widgets into a page through JavaScript. Each widget is then linked to an existing element (e.g. a text field) and will update the element’s value when a color is selected.
Download Farbtastic 1.2 – 8 January 2007 (License: GPL).
Farbtastic: jQuery color picker plug-in | Steven Wittens – Acko.net
This is a nifty tool to format JavaScript that has been mini-fied. Very nifty for reading JavaScript (although it doesn’t get your function names back, if they’ve been obfuscated…).