I think you're looking for a test() method instead!
match() is used to extract substrings from a given string.
function validate_phone(value,alerttxt){
var re = /^\(\d{3}\)\d{3}-\d{4}$/;
var ok = re.test($(input[name=unitContactPhoneNumber]).fieldValue
());
alert(re +
PS. the correct phone number for your regex is, for example: (123)
456-7890
right?
On Jun 12, 3:57 pm, John jmcl...@birchrunsoccer.org wrote:
Good call.
Here are my changes.
function validate_phone(value,alerttxt){
var re = /^\(\d{3}\)\d{3}-\d{4}$/;
alert(re);
$(document).ready(function(){
$('div#bullseye').bullseye({
'use_rows':3,
'use_cols':3,
});
});
try to remove the last comma from options obj. IE doesnt
btw. I played a bit with ui.effects on Tabs
http://orkan.jaslo4u.pl/chili_toolbar/
On Sep 11, 11:31 am, Klaus Hartl [EMAIL PROTECTED] wrote:
You mean the animation? I'm sorry, currently not. Implement cross-
fading is on my list though...
--Klaus
On Sep 10, 3:57 pm, Chad Pry [EMAIL
Note: this is for vertical scrollbar
if($.browser.msie this.scrollWidth this.offsetWidth)
{
$(this).css({padding-bottom: 1.5em, overflow-y: hidden});
}
On Sep 5, 8:20 pm, p.mohanasundaram [EMAIL PROTECTED]
wrote:
Any Solution??
On Jul 13, 10:00 am, NA [EMAIL PROTECTED] wrote:
is it me or they have z-index issue in IE7 ?
On Sep 1, 4:56 pm, Joel Birch [EMAIL PROTECTED] wrote:
That's all correct about IE. In this case however, it seems like the
reason for the if/else is for the benefit of Mac Firefox 2. In that
browser, the weight of the text appears to alter
Well,
very often remote scripts are (at least) minified.
it's a pain to debug such scripts.
For debugging I use uncompressed local copy, so I wont help you in
that matter, sorry.
IMO, most programmers do it that way
On Jun 21, 10:21 am, Hamish Campbell [EMAIL PROTECTED] wrote:
Nevermind -
it depends of the object (proto) type ;)
simple object could be cleaned this way:
myObj = null;
As far as I know, it is used to avoid memory leaks in certain versions
of IE 6, other browsers will do it automatically
On Jun 20, 5:31 pm, Scott [EMAIL PROTECTED] wrote:
Can someone point me to
Hi,
this should work:
$(td:contains('comment')).each(function(){
$(this).text($(this).text().replace(/comment/, vote));
});
PS. if you want to prevent html entities being stripped out, then
use .html() instead:
$(this).html($(this).html().replace(/comment/, vote));
On Jun 5, 6:58
9 matches
Mail list logo