jquery

Change color of date

How do I change datepicker backgroundcolor for SU MO TU .....? Totally noob here... where do i need to look? ...

how to get the selected radio buttons value

I have a simple from with 2 radio buttons and I need to get their values if they are checked. <form class="descriptions" id="collection" method="post" action=""> <table width="200"> <tr> <td> <label>Collectio...

Use of variable in the Ajax post

In my application I am using Ajax post like: $('#fb_contentarea_col3 #fb_contentarea_col1down2 #saveForm').live("click", function() { if (!$("#formName").val() == "") { if (saveDraft == 'on') status = "Incompleted"; else status = "Completed"; var formname = $("#formName").val(); $.ajax({ type: "POST"...

jQuery Drop Down Menu - slideToggle

jQuery $(document).ready(function(){ $('.cats_showall').click(function(){ $('.cats_dropdown li').slideToggle(); }); }); CSS .cats_dropdown li{ display: none; } .cats_dropdown > li:first-child{ display: list-item; } HTML <ul class="cats_dropdown"> <li>Category 1 - <a href="#" class="cats_showall">Show all</a></li> ...

jQuery how to swap each instance of "&" append <span> tag to each element

Like the title says, I want to be able to, on page load, search through the text located inside #wrapper. If there is a "&" I want it to have a span tag applied to it and a class appended to that span. Ie: if it finds "hello & Welcome" it should end up like "hello <span class="amp">&</span> Welcome". I did have some code Ive been t...

Jquery: Select a row in a Table and use its data?

Hey I have a table where i want to be to both select a row and delete a row, but i can't figur out how to do this with JQuery. The code i have only effects the first row in the table. So i can remove the first row but no other. What is wrong. Here is what i tried: <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="ser...

Dynamically Added Client Script/HTML Calling Server-Side Event

My problem is in regards to calling a server-side event (e.g. DeleteClicked) from dynamically generated html/javascript on the client. I have an existing page on my website that is deeply rooted in .net. The page lifecycle is pretty complex and there are dozens of events that can be fired from the page. We want to start taking advantage...

What is the best jquery validation plugin?

That has reg expression checks for phone, zip, email. Comparison checks for email and password. Bonus: masking and forcing letters and numbers only options. I would like one that works well with this: http://www.malsup.com/jquery/form/ This is a multistage sign-up and would work when step 1 is complete(the form) it would send it to the...

jQuery Image Change - Gallery View

I have a large image in a gallery that needs to change when one of the thumbnails is clicked within a unordered list below. The images are coming in dynamically so the jquery script needs to be able to take the src of the thumbnail, remove "-thumb" from the filename, and then replace the large image with the new source. Please let me kn...

Change select box style

I want to change select box style by using css and jquery is it possible? ...

JQuery slideToggle display type

I'm using a jQuery slideToggle to show a hidden table row but it sets the display style to block and I need to to display table-row. any ideas how i could accomplish this? thanks in advance ...

jQuery validation error message

I am using jQuery validation plugin and I want that the error message to be displayed in a specific text input with id="test". How do I do this? ...

automatic jquery stylesheet switcher

I have seen many css switchers which place a button allowing the user to change styles to suit their taste. I am looking for a similar solution that I have not yet found. This is the closest: http://net.tutsplus.com/demos/03_jQueryStyleSwitcher/demo/index.php# I want my page to fade from one style sheet to the next every x seconds, so...

Jquery datepicker icon hide

I am using a Jquery dialog for both viewing a record and editing a record. When in edit mode the user can change the date using the datepicker. In viewmode I need to hide the datepicker icon and only show the date. Is there a way to toggle the datepicker icon on and off as needed? ...

jQuery scope problem

I am trying to create a sort of generic xml parser, like this: Part 1: An object with filter is created: var product = { holder : { id: '', title: '', text : '', price: '' }, filter : { id: '', test: function( elementHolder ) { if( elementHolder.id == product.filter.id ) { return true; ...

What is the best way to validate date and time.

In my asp.net mvc program, the user will input the date in one field and the time in another field. The time will be in 24hr mode so the user can enter 00:00 - 23:59, and the date should be in the typical mm/dd/yyyy. With all the different options available for validating the input, such as javascript/jquery/masked input on the client s...

Jquery: Selection within a selection.

I have an array of different elements stored from a previous selection, call it 'a'. How do i then do another select from this previous selection (a) and just return elements of type input? ...

Jquery form validation - dynamic form name

Hello! I need a litle help to validate my form: Now, i use this code to validate my form: $(document).ready(function() { $("#set_search").validate({ rules: { q: { required: true, minlength: 2 }, q2: { number: true }, }, messages: { q: "Please enter ...

Form submit in DIV using jQuery

I'm referring to a problem similar to the one in this post, because the solution described there doesn't work for me. The starting point is a HTML page (called profile) with jQuery UI tabs: <div id="tabs"> <ul> <li><a href="#realtab">Foo Bar</a></li> <li><a href="?cmd=changePassword" title="pwd-settings"> ...

jQuery Ready Function Value Passing to Javascript Functions

Hi, I have the following jQuery code. As you can see, I have an alert that display the current tab that I am on based on the value from this.getIndex(). My question is, how can I get access to this value, so that I can use it within other javascript functions that don't reside with the ready(function)? I want to be able to say instead...