jquery

How to use JQuery to Disable "specific" Dropdowns

My Goal: Checking radio button will disable the 'same' column of dropdownlist in a number of separate tables. I understand you can assign ID's and act on those ID's, or using by Tag Name. However, I am new to ASP and have a unique situation that neither of these options appear at the surface to work for me. I have a web form, that h...

jQuery form submission extra characters on sent with textarea

I'm using the http://malsup.com/jquery/form/ plugin to submit some forms via jQuery. Within these forms I have a couple of textareas. I have a simple script that limits the number of characters that can be entered into these textareas and this all works fine. However when I submit the form looking at the value that gets sent the form ite...

Are there any jQuery Books that have been updated for 1.4?

I'm looking to buy a jQuery book and want to find the best one that refers to the latest jQuery, 1.4.x. There are a number of threads on here already talking about jQuery books, but the most recent I have seen is Learning jQuery which refers to jQuery 1.3. ...

Fancybox autoscale with long captions

The fancybox autoscale option doesn't seem to take into account the size of my captions. I need something that will put, not just the image, but the image and the caption in the viewport. You can see what I mean here: http://getahobbydesign.com/projects.html ...

why does the 'error' function of $.ajax execute even when the request to invoke a webmethod succeeds?

hi, I am using jquery ajax method to invoke a webmethod upon clicking a 'span'.This is webmethod is in one of my aspx pages and I am invoking it from the master page using the following code. $(document).ready(function(){ $("#btn").click(function() { $.ajax({ type: "POST", url: "Default.aspx...

Transforming a list of objects into List<List<string>> of data

Hi I am trying to use the jquery DataTables plugin for my system, using a webservice to populate the data through an ajax call. What I need to return from the webservice is a List like this: List<List<string>>; I have about 120 different domain classes being used by this as the core data objects, so I need some kind of system where I ...

Cusomize event view in basicview like in agendaview

Hi, I want to have the same event view in basicweek as in agendaweek. (Darker headline contains the event from and event to time) and then a light-blue contains the information. Where can I cusomize this style? Greetings Alexander ...

Returning from a nested function in javascript

Hello, I'm trying to make a function that uses jquery's ajaxfunction to get some info from my ajax.php file. code: function ajaxIt(dataLine){ $.ajax({ type: "POST", url: "ajax.php", data: "ajax=true&"+dataLine, success: function(msg){ console.log("[AjaxIt]: "+dataLine+" returned "+msg); ...

How to get the selected value in a dropdown using jQuery.

Hi, i have a HTML like this. I need to get the selected value (here Scheduled) using the <select> tag. How to do that using jQuery. <select id="availability" style="display: none;"> <option value="Available">Available</option> <option selected="selected" value="Scheduled">Scheduled</option> <option value="Unavailable">Unavailable...

jQuery Validation Plugin and Same/Duplicate Name Attributes.

Hi, first post here. I am using the jQuery validation plugin, to validate some custom forms, and submitting the forms to a CRM tool. The CRM tool has a wide array of Data variables, that we can post too, but on occasion there are fields which don't match and we need to post these all into the notes field in the CRM tool. Now the proble...

using length in jquery in IExplorer 8 doesnt work to check if div exists

I have this code, window.onload = function(){ if($('div.colorPicker').length){ $("div.colorPicker").click(function(){ if($('.field_sku').length){ code = $(this).children('.tmpSKU').html(); if(!code || code==null){ code = "Item Code not set yet"; ...

jQuery Select all tables with id starting by..

Hi to all, I would like to select all the tables where the id starts with the same sentence, with jquery. This what I mean: <table id="Tab_01"> <tr> <td>.... <tr> .... </table> <table id="Tab_02"> <tr> <td>.... <tr> .... </table> <table id="Tab_03"> <tr> <td>.... <tr> .... <...

CSS Show active element above the div with overflow:hidden

I have a scrolling pane div with overflow:hidden. Please check it here. There are products as images with captions shown in the scrolling pane. When I move mouse cursor over a product div, it gets light-yellow background and changes its height - I just add a class to the div using jQuery and it works fine. The problem I need to solve som...

How to get the count of selected values in a dropdown using jQuery.

Hi, i have a HTML like this. I need to get the selected value's count using the tag. How to do that using jQuery. <select id="availability1"> <option value="Available">Available</option> <option selected="selected" value="Scheduled">Scheduled</option> <option value="Unavailable">Unavailable</option> </select> <select id="availab...

jquery undelegate click event after event has completed

Hi, I have a click event that animates in some AJAX content onto a page. Once this content has been revealed and a user clicks the same link that activated the process i now want to reverse the process and close the currently open fly out content. At the moment the currently open fly out is closed either by clicking a 'close' link o...

Jquery condition to replace title tags

Hi. I have been scratching my head trying to get Jquery to conditionally search and replace title tags in a document. Essentially I want Jquery to go through a list of image tags, check if the image tag is a space " " and if so remove the space "". If the title tag is anything else Jquery should leave it alone. HTM i am not allowed to a...

jquery counting elements

Hello, I wondering if it is possible to count the number of elements using jquery and then using that prefix the element with a number, so for example I have 2 selects on a page, is it possible to count the selects and then give the selects, a class e.g., <select class="1"> <select class="2"> ...

Highlight/Format textareas

I'm looking to implement a live diff inside a webpage that preserves whitespace. I've done something similar in the past using a combination of TinyMCE and JQuery in IE6 (required for that project) but it didn't preserve whitespace. (It wasn't supposed to, but I didn't add anything to make it do that, it just did). TinyMCE wasn't idea...

jquery: get attribute name value of <input>

How to get the attribute name value of a input tag using jquery. Please help. <input name='xxxxx' value=1> ...

overriding JQuery .click() function

Hi guys, i'm having a bit of a prblem with the jquery click function, below is part of the layout of my code: <td id="01" class="day-main-diary"> <div title="sdfsdf" class="diary-event ui-corner-all"> <span id="delete"></span> <div class="diary-event-title ui-corner-all"> sdfsdf </div> <di...