jquery

Using jQuery to rapidly scroll through a countdown

I have a webpage that displays the number 0, and when the user presses "start", the number should rapidly increasing until it reaches a target number (maybe 10,000 or so) a few seconds later. I'd like the numbers to scroll by as if they're on a slot machine wheel. I've managed to mostly hack something together using the ScrollTo plugin...

jquery text editor lite weight

i used jquery's jqrte text editor which u can download from jqframework.com/jqrte but it has many draw backs. could any one please suggest me lite weight jquery text editor with common tools as well as table, image upload link with browse button. thanks in advance.. ...

jQuery: How do I check checkboxes by id and value (checking some, not all, checkboxes in a list)

I need to check a few checkboxes in a list of checkboxes where the IDs are the same but the values are different. I guess this is a specific selector that needs constructing, but how? ...

How Can I Know If An Input Is Checked If I Only Know His Value?

Hello here! I have a dynamic input in my php code like this one: <input type="checkbox" id="advantage[]" name="advantage[]" value="Special Option" /> And I need to know if it's checked... I can have multiple checks in the same format in the code, my brain hurts because i can't find a solution! Thanks 4 the help! ...

element.nodeName not defined for a html element created using jQuery

I created a new HTML element using jQuery. var v=jQuery('<p>Hello</p>); But when I try to get the nodeName of the new element, v.nodeName.toLowerCase(); I get error, saying that nodeName is not defined. What is wrong here? Thanks. ...

jQuery trigger mouseover function when page loads with the mouse over the element

Hello all, I have an ASP.NET document, with an Image element within it. I created a mouseover function on this image element and it's working fine. The question is: If the mouse is ALREADY over the element when the document loads itself, the mouseover function doesn't trigger (I need to mouseout and then mouseover again in order to trigg...

How to group rules in jquery

Hi I've got a simple question. I've this code below, i use ajax three times in very similiar ways the only things that change are the data passed and the id of the target. Is there a way to group these instructions in a simple one? Thx D. $('#fld_email').focusout(function() { var request_email = $(this).val(); ...

PHP Variable to JQuery function?

Hi, I need a relative path in this function: $(function() { $("#searchbox").autocomplete({ minLength : 2, source : function (request, response){ $.ajax({ url : "http://linux/project/index.php/main/search/", ...

IE error on simple jQuery

Detaild information about the error Useraget: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Tiemstamp: Tue, 25 May 2010 08:54:11 UTC Message: Object doesn't support this proper...

Change <body id="grid"> to <body class="list"> with jQuery..

I know how to change an id: $("body").attr('id', 'list'); But now I want to change the attribute itself; instead of id='grid' I want to have class='list' For example, this: <body id="grid"> Should turn to: <body class="list"> ...

JavaScript check of a form, not waiting for AJAX response

this is a part of the check in my form function check(theform) { var re = /^\w[0-9A-Za-z]{5,19}$/; if (!re.test(theform.username.value)) { alert("not valid username"); theform.username.focus(); return false; } $.ajax({ type: "POST", url: "username.asp", data: "username="+theform.username.value, success: fun...

remove/restore elements, maintaining their events and element's children

I came to a situation where I need to edit the following in a way that, on some event (lets assume the 'click' event in this case) I need to remove (or unwrap?) the .container and the .header and have the .itemlist still visible/available on the page. And then, I need to restore .container and .header back again on some other event, whil...

JQuery Dialog containment

Hello Is it possible to add containment to JQuery's Dialog? Edit: Oh sorry containment I meant.. ...

jQuery preventing RedirectToAction from working?

I'm trying to redirect the user if they login successfully but the code I have on my page seems to be preventing the redirection from working. If I remove the jQuery below the redirection works. Can somebody tell me tell me if there's something I'm doing wrong? Thanks I have the following Action: [AcceptVerbs(HttpVerbs.Post)] p...

Why is jQuery adding a space to the class attribute?

I'm having some strange issues with .removeClass() and .addClass() in jQuery. Specifically it seems that when I use .removeClass() the class is indeed removed, but a single space is left in it's place. then when I .addClass("secondclass") I get class=" secondclass" (with the space in front). I'm using jQuery 1.4.1 Is this intended be...

Allowing just Numeric Text on Input Text field

There are many solutions suggested on Stack Overflow but i have not found yet, one that fully satisfy my requirements. I was using Jquery Numeric plugin but i found that is not working (does not allow pasting) on FireFox 3.6 on Osx. I'm searching a Jquery plugin or Javascript snippet that allow just Numeric Text on a Input Text field...

webservice doesn't get called by jQuery

Hi, I want to call a webservice using jQuery.ajax() but the webervice doesn't get called. - If I change the url: to reference a .ashx file it gets called but not .asmx? Here's the code I'm using: jQuery.ajax({ type: "POST", url: "/services/CheckUsername.asmx/CheckUsername", // this doesn't get called //url: "/s...

In jQuery does the advanced CSS3 selection style work in all browsers?

I'm watching a tutorial learning JQuery for the first time, and it seems you can select items using pretty much CSS, like: $('ul li:nth-child(3)').addClass('biscuits'); Is that kind of selector going to work on all browsers, or just ones that support CSS 3 ? ...

Jquery Cycle Lite plugin unable to see images that have been loaded by an AJAX call

Hi, I am having problems using the jquery cycle lite plugin on some images that are added via AJAX. Here is the jquery code: $(function() { resizeWindow(); $(window).bind("resize", resizeWindow); $("#assignment-nav").accordion({ header: "h3", ...

How to handle events from button's from browser

hey there, i want to implement a little feautre with jquery, where i want to catch the event that occures when the user clicks on the "Back" button of his browser, to get to the last page. but how? didn't find any working solutions :-( ...