jquery

Get checkbox list values with jQuery

Hello, In a div, I have some checkbox. I'd like when I push a button get all the name of all check box checked. Could you tell me how to do this ? <div id="MyDiv"> .... <td><%= Html.CheckBox("need_" + item.Id.ToString())%></td> ... </div> Thanks, ...

how to select divs with jquery like for example in photoshop ? (select area)

hello, have some divs, on some positions. i want select them with mouse, like when are you selecting object in photoshop. so i want to select group of divs. is that possible with jquery ? thanks ...

Jquery: Highlight/De-highlight table row on click

Hey I want my script to highlight the row that I select and it works great, but when a row is selected/highlighted i want it to be "deselected/dehighlighted" if another row is selected. How do i do this? Here is current code for selecting a row, it deselects, but only if i click on the same row again: $(".candidateNameTD").click(funct...

JQuery - "highlight" effect help

Looking at the "highlight" JQuery effect: http://docs.jquery.com/UI/Effects/Highlight You can change the background color of any DIV to fade in/out However, the example is to "highlight" on a "click" event $("div").click(function () { $(this).effect("highlight", {}, 3000); }); How can I programatically call the highlight meth...

jQuery if found in string

Hello guys, thanks for the help in advance. How can I have jquery check to see if a variable contains a specific word in it and have it execute an alert if matched? ...

Aborting A jquery getJSON XMLHttpRequest (UPDATED)

Turns out this was an artefact of a Firebug bug. The Ajax request was cancelled, but Firebug continued reporting it as active. Details here. I have long running XMLHttpRequests and I need to be able to abort them under certain circumstances. I set up the request in a normal way: ajax = $.getJSON(url + "?updates", function(data) { .....

JQuery - CSS ninja help wanted

I'm using the JQuery Slider Control IE 6 looks FUBAR. Screenshot (how it should look) img24.imageshack.us/img24/9786/safarij.png Screenshot (IE6) img99.imageshack.us/img99/3418/ie6o.png What CSS can I use for IE6 to make it look like Firefox/Chrome/Safari? Any CSS ninja magic would be greatly appreciated. ...

IE7 jQuery Sortable bug?

Hello, I'm trying to create a 3 column page with jQuery where users can move boxes between the three columns (something simular to iGoogle). In firefox and safari the dragging works perfectly fine. In IE7, once you drag a box once it works fine but then that box cannot be moved after that. I've tried re-applying the jQuery Sortable p...

jquery append to string variable

Hello guys. How can I append a word to an already populated string variable with spaces? ...

jQuery Plugin Development - passing parameters to user defined callback function

Thank you all ahead of time. This is my first time developing a jQuery plugin (and first time developing in javascript as well actually), and I have to say I'm pretty geeked (It probably has many hideous things to you seasoned js/jquery developers, but this is my first attempt - please bear with me :). I welcome any constructive criticis...

jQuery - auto size text input (not textarea!)

Hi, How do I auto-resize the input type="text" field with jQuery? I want it to be like 100px wide at the start, then make it auto-widening as user inputs text... is that possible? ...

how to use jQuery to show up a non-modal dialog?

Here is a plugin for block dialog: http://malsup.com/jquery/block/#dialog But what I need is a non-block dialog. Is there such a plugin? It should be as light as possible ...

IE7/8, jQuery ui sortable, and hiding content. O.o

So I've been having weird problems with jQuery sortable. I've got sortable li elements, which sort fine, however in IE, when dragging, the images disappear. I'm fairly sure they just get positioned weirdly but it doesn't seem to happen in any other browsers, other times the whole content within will disapear. Now I found a fix to this, ...

How to remove stored values from a function in Javascript?

Unfortunately I can't provide a link, but I can provide the majority of the code. I understand I am not particularly performing these functions the proper way, but that is my question. This code is simply to dynamically add divs that highlight a section of an image as a reference to a select box they hover. Furthermore, on page load, bas...

jQuery Plugin to replace HTML select with keyboard support for IE6

I'm looking for a jQuery plugin that either replaces or improves the HTML <select> tag in Internet Explorer 6. Think of this situation: <select name="test"> <option>Apple</option> <option>Apricot</option> <option>Lemon</option> <option>Peach</option> <option>Pear</option> <option>Raspberry</option> </select> W...

load a document string into an iframe

I have a string (fetched via ajax), which is an entire html document (doctype to < /html>). Does anyone know of a way to load it into an iframe? I cannot simply specify the url that returned the document in the src of the iframe, since the response may have come from a post, and repeating it may have ill effects. Also, I can't submit it...

Simple toggleClass on click not working on table

$('td').click({ $(this).toggleClass("selected"); $("td .selected").toggleClass("selected"); }); I get the error: missing : after property id on both those lines. ...

validate string - only specific language characters

Is there a way to check if a string contains characters of a given language only? (for example Japanese, Hebrew, Arabic) I'm wondering if there is a way implementing this kind of validation in Javascript\Jquery and in c#? EDIT I'm not willing to check if the string contains valid words of a specific language dictionary. I'd like to ...

Trigger a jQuery UI slider event

How can I trigger a change event on a jQuery UI slider? I thought it would be $('#slider').trigger('slidechange'); but that does nothing. Full example script follows: <link href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" type="text/css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jqu...

Uploading all files in a directory from a web client?

Over the last couple of days I've been looking for a way to upload the contents of a directory to a server via a web client. Pretty much all the file upload solutions I've seen restrict the user to selecting one file a time via a browse button. What's the { best | easiest | most popular } way to do this? I'm using ASP.NET MVC on the s...