jquery

Force LI to end of list with jQuery connected sortable lists using placeholder

I an using jQuery to create connected sortable lists to create a main menu for a website. The left hand list contains available pages and the right hand list contains the current menu structure. I am using placeholders to highlight the location where the user needs to drop the item. At the moment the user can add an item from the left l...

How to know if a tab is enabled on jQuery tabs?

Hi, I can't find in the API of jQuery UI Tabs ( http://docs.jquery.com/UI/Tabs) a method to know if a certain tab is enabled or not, I want that because in an event of my application I want to enable a certain tab only if that tab is disabled.. Thanks in advance. ...

Is it possible to send json parameters as request data to webservice and get reply in xml format

I have the following code where i construct json data and send to the webservice ,my datatype will be json and response from the webservice will be in xml format does this logic work out or do i need to stick to any one particular datatype either json or xml. var keyword2 = "{\"keyword1\":\"" + keyword1 + "\",\"streetname\":\"" + addres...

How to get jQuery Visual Studio 2010 IntelliSense to work inside a noconflict wrapper

I added the vsdoc jquery reference in my js file: /// <reference path="../jquery-1.4.1.vsdoc.js" /> This works fine, but once I write inside a no conflict wrapper... (function ($) { ...here... })(jQuery); ...IntelliSense does not work. Why is this, and is there any way to solve this? ...

find occurences of a class and if there is only one then hide with Jquery

I'm trying to hide a button depending on how many occurrences of a certain class there are. I am dynamically putting data into a page and for each dynamic div i put in i assign it the class "propdata" I need to count how many occurrences there are of "propdata" and if there is only one occurrence i need to hide the button with a class o...

Bulk change HTML content using jQuery

I have several tds, with ids = row[0], row[2] row[4] and so on. <td id="row[4]">02:45</td> <td id="row[6]">03:45</td> The content in these are times like 03:45, 04:45 which I want to change to 03:15, 04:15 etc. using jQuery. EDIT: I ended up with this: jQuery('td[id^="row"]').each(function(){ min = parseInt(jQuery(this).text()...

get the href of one link and put it in the href of another link

I'm trying to grab the href of one of my links and clone/copy that to the href of another link Here's what i'm trying var link = $('.topbook'); var link2 = $('.sidelink'); var hrefOrig = link2.href; link.href = hrefOrig; Thanks Jamie UPDATE Here's is what I'm trying to get <a href="default.aspx?propid=BAR...

How to get json string from json object in jquery?

I know jQuery.parseJSON will convert my json string to json object. Which does the vise versa in jquery (ie) json object to json string... Any suggestion ...

use jQuery to ask if div got a background image?

Is it possible to use jQuery to check if #page has got a background image - #page could look like this: <div id="page" style="background-image: url(xxx)"></div> if it contains a background image, it should add a class to #page ...

Bassistance Validation not working correctly with jqTransform

Hi, I'm using jqTransform to style my forms which works very well. However, when I add Bassistance's Validation plugin, the validation error messages are shown within the jqTransformwrapper divs (i.e. inside the textbox) instead of the parent element (after input). So the DOM shows this: <label for="firstname">Firstname</label> <div c...

Enums with jQuery?

$("#bc [id$=_dropdownID]").change(function() { if (this.value == '2' || this.value == '3') { $("#bc .pnl").show(); } else { $("#bc .pnl").hide(); } I have the following code in jQuery. Is there any way I can replace the hard coded constants 2 and 3 in the above code with a c# enum? Does jQuery support en...

How to stop executing a fadeOut() while hovering over a element, using Jquery?

Hi All, I was wondering how I can get this piece of code to stop execution while I'm hovering over '.child'? Here is the code I'm working with, see below: $('.child').live('mouseleave', function(){ $('.child').delay(2300).fadeOut(200); $(this).removeClass('child'); }); Much Appreciated. Thanks ...

Problem with passing xml data to webservice and return the xml file as result back from ajax -jquery call in clientside

I have jquery ajax call to webservice for which i am passing xml parameters as data ,when i run the code the flow is not reaching webservice GetList method at all, can anyone track what may be the problem should i make any changes to my webconfig file or refer any latest jquery file to get the code running sucessfully $.ajax({ ...

jQuery validation plugin - partial validation depending on trigger

I am using the jQuery validation plugin and I would like to validate a floating point number and format it to a specified number of decimal places. I am using element.value = parseFloat(value).toFixed(param); to format the floating point value if it is indeed a valid floating point value, I just only want to do this on blur, not on ...

jQuery textarea - insert pattern cursor position

In a text area how to insert the pattern name next to the cursor position using jQuery and after which the cursor should be after the pattern:This should happen on the button click <input type="button" value="insert pattern" > <textarea rows="10" id="comments">INSERT The condition</textarea> ...

get href of link with display:block property

Here's is what I'm trying to get <a href="default.aspx?propid=BARN" class="topbook"></a> The above link should clone the sidelink that has display:block <a href="default.aspx?propid=FARM" class="sidelink"></a> <a href="default.aspx?propid=HANW" class="sidelink"></a> <a href="default.aspx?propid=BARN" class="sidelink" style="display:b...

append a specific line from a file to a list element with jquery

first sorry bad english i retrieve from a db some values and save them in a file. i have a list with an id in every li element. When i click an element i want to append the line from the file which is equal with the id i just clicked example i have : <li id="test1">just test </li> there is a test1 value in a line at the file...i...

jQuery: Making a Favorite button with function?

Hello. Right now i made this: <a href="#" title="[+] Add as favorite"><div class="addFavorite"></div></a> the class="addFavorite", is a normal grey star. Then i have another class="AlreadyFavorite", that is a yellow star. I want to make a function, so when you click on the grey star, it sends an ajax call(?) and then on success it...

jQuery serializeArray not picking up dynamically created form elements

Hi, I've got a form that's dynamically created using ajax (as data for the form elements has to come from a database) and I want to serialize the elements of the form to submit by ajax. I'm currently just testing my theory using code from the jQuery website just to see if I can pick up the form elements and this is where the problem lies...

Jquery hovered item over 'a' tag

I have a link element and when you hover over it a div appears. This div is meant to be over the link element. When I move my mouse the div that is showing flickers. Is there a way to fix this. I am assuming it is beacuse the div is now covering the link element. Thanks, C ...