jquery

jQuery selector to determine 'or'?

Let's say my HTML may look one of two ways: Option 1: <h2>My header <span class="apple">My Span</span> </h2> Option 2: <h2>My header</h2> Via jAuery, I want to append a span to either the nested span (if it's there) or to the header directly, resulting in one of these: Option 1: <h2>My header <span class="apple">My Span ...

Need to change the background color of datalist cell

I have a datalist with itemtemplate which contains: an anchor and an href tag . Everytime a user clicks the link I want to change the background color to green of the so that the whole cell looks selected. If another cell is selected then the previous background should clear up and the new cell should get the green color. Right now all...

how to a make label message disable after 10 seconds

I have a form with two text boxes. Once I enter the data and click the save button, I get a message in label: indicating that it saved successfully. Then i am in the same form again, but when I click on the save button, I get a message telling me that it cannot be blank "as textbox value is empty this time" from the required field valid...

Credit Card validation with Jquery

Hello , i'm trying to validate credit card numbers with jQuery but i dont want to use the validation plugin , is there any other plugin for doing this? thanks ...

Click a link on a home page and have it open an accordion other then default actice

Hi I need to be able to click a special menu link on the homepage and have it open a page with an accordion open to a different section other then the one that is normally active (0) when you visit the page from the default (different) menu link. I am pretty new to jQuery but I think I can follow proposed solutions. Thanks! ...

What does Google Closure Library offer over jQuery?

Considering business background community support available extensions default set of features simplicity of use and reliability why do you prefer one over the another? ...

Font in transparent area

Hello, I'm using JQuery library. I make some div transparent (0.7). There are some text in that div. And I see unpleasant situation: text font is ugly. As I understand, cause all div-area is transparet, my text also. Could I make it untransparent? upd I tried to make my div untransparent: the text is great! So, how can I make my div tr...

jQuery is not responding to a simple .click() command -- what's wrong?

I'm using jQuery to dynamically add form elements to a web form. Users can "add a time slot" to their request form by clicking a button/link. When clicked, I'm using .after() to add another two rows to the form table, as well as the labels and fields. The last column in the appended code is a link that says "Remove". $(document).ready...

Update Database record using jQuery/PHP and a link and not a button

I am attempting to make a registration-like page for a small forum. To register for an event, I simply want the users to click a 'link'. (It doesn't have to be a link, but I don't want it to look like a button, so fancy CSS is acceptable). On this page there will be a limited number of openings per event. (Simple database query to popul...

Jquery click event not firing second time with button in asp.net GridView?

I have a GridView with a few columns. One of the columns is a button. It is in a template field which looks like this: <asp:TemplateField> <ItemTemplate> <asp:Button ID="btnApply" Text="View Details" CssClass="viewdetails" runat="server"/> </ItemTemplate> </asp:TemplateField> My JQuery code is as follows: <script type="text/jav...

Is there any way to determine if an HTML select is currently open?

I have a page that is doing a continuous ajax refresh, and I don't want to do this refresh if the user is currently making a selection in a dropdown. Is there any way to check if the user has the dropdown opened, and then stop the update? Thanks! ...

Getting data back AND $POSTing data using jQuery.Ajax

I'm trying to build a registration system using PHP and the AJAX components of jquery. My jQuery takes the values of the username and password fields and makes a POST request to the PHP script, which grabs the values using $_POST and saves them to the database. Of course, i'm wanting to make sure that there aren't any duplicate usernam...

Fading in background image with jQuery

How would you fade in a background image (the body tag, and it is tiled) with jQuery? The background color is white and in a callback function I want to toggle the background image to on and off. Any ideas? ...

Obfuscating your jquery code.

Possible Duplicate: How can I obfuscate JavaScript? Can someone please suggest a method to obfuscate the jquery code used in a website. Is it correct to do so from the functionality point of view, i mean will it work fine on all browsers after obfuscation ? Thanks. ...

show div depending on select option

Oh help, I've tried it a million different ways yet it still does not work: If you select update or final from a select/option box, it should show the div that has an input field in it. It only does what the default shows in the switch statement. Of course, it's only after a selection is made that I want it to determine whether it shows ...

jquery ajax with memcache and php objects

Hi hope I'll be able to explain my needs clearly... :) . I have a HTML document generated by a PHP script that contains some objects stored in memcache. The PHP script uses these objects to populate the HTML elements and create a structure like this: //$day is an array of objects pulled from memcache <ul id="day"> <?php foreach($day ...

Jquery TreeView Add node

A parent page contains a tree (Jquery TreeView), users can add a node using a pop-up, a pop-up has to connect to the database and retrieve some data and return it upon closing (at this point it is a .net server-side page). After this I have to add a node(or several) to the TreeView. question: upon a pop-up close, how do trigger the add...

Client data cache in isolated storage - asp.net - jquery - ajax - silverlight

I have a couple of customer websites that have been in use for 4+ years. One of the pages on both sites contain drop downs that now contain 3000+ items. I have attempted initial solutions to this problem by adding new pages to both sites where one site is using silverlight and the other is using ajax. The silverlight page currently perf...

What is JQuery's equivalent of scriptaculous/prototype's auto-complete?

Prototype/scriptaculous can do an easy autosuggest in the input box. It's pretty much built in. How can I do that with JQuery? ...

Does Dreamweaver CS4 include jQuery?

Hi all. Previously I was using Netbeans IDE to complete my JSP project. I was able to easily add Javascript framework such as jQuery into my project easily by selecting the JS framework I want. Due to certain circumstances (competition rules and so on), I have to switch and use Dreamweaver CS4. Does Dreamweaver internally provide such ...