I am confused as to when I can use the DOM properties and when I could use the Jquery methods on a Jquery object. Say, I use a selector
var $elemSel = $('#myDiv').find('[id *= \'select\']')
At this point, $elemSel is a jquery object which I understand to be a wrapper around the array of DOM elements. I could get a reference to the DO...
Obviously, I know most people use the Validate plugin religiously. But I'd like to know what you're most used plugin is. Have you modified it? What does it lack?
Excact dupe of http://stackoverflow.com/questions/538498/your-favorite-jquery-controls-plugins
...
I know how to do this with pure PHP but I need to do this without reloading the page. Is there anyway with jQuery to effectively pull back some database results (based on what a user has input in the first text field on a form) then populate some of the remaining fields with data pulled back from a db query?
Essentially I would like to...
I want to have a large HTML form broken up into several smaller sub-forms in a JQuery UI tabs layout. But I want to have one special "All" tab that has all of the sub-forms on that tab. So when a user clicks on the All tab, they can see and edit all of the form fields that are normally divided up on several tabs.
How could I easily do...
I'm using jquery DynaCloud with wordCount to create a dynamic tagcloud.
I have specific terms to include in the cloud (though the frequency is different for each user), and some of the terms are multiple word, or have special characters ("&", "'", " ", etc.) as part of the term.
I break the terms with specific html blocks:
<pre><span...
How would I go about reordering divs without altering the HTML source code?
example, I want divs to appear in order #div2, #div1, #div3, but in the HTML they are:
<div id="#div1"></div>
<div id="#div2"></div>
<div id="#div3"></div>
Thanks!
...
I want a really nice way to load in pictures onto a webpage, like a portfolio of my work (let's say it's pottery that I sell on the web) - various fade effects and the like - what can you recommend? Is there something in JQuery?
Thanks
...
I need to split a span into two spans wherever the user clicks. The following jQuery works fine in Firefox:
$(function () {
$('span.sentence').click(add_sentence);
});
function add_sentence() {
var selection = window.getSelection();
if (selection) {
var anchor, t1, t2;
anchor = selection.anchorNode;
parent_...
I have a text box that will have a currency string in it that I then need to convert that string to a double to perform some operations on it.
"$1,100.00" -> 1100.00
This needs to occur all client side. I have no choice but to leave the currency string as a currency string as input but need to cast/convert it to a double to allow some...
What happens in jQuery when you remove() an element and append() it elsewhere?
It appears that the events are unhooked - as if you were just inserting fresh html (which I guess is what happening). But its also possible my code has a bug in it - so I just wanted to verify this behavior before I continue.
If this is the case - are there...
I want to populate form fields with values from a database immediately after the user enters a value in the #sid field. Here is my jQuery/HTML example:
<script src="jquery-1.3.1.min.js"></script>
<script type="text/JavaScript">
$(document).ready(function()
{
$('#sid').bind("change", function(){
$.getJSON("test.php?sid=" + $("#sid...
JSON allows you to retrieve data in multiple formats from an AJAX call. For example:
$.get(sourceUrl, data, callBack, 'json');
could be used to get and parse JSON code from sourceUrl.
JSON is the simply JavaScript code used to describe data. This could be evaled by a JavaScript interpreter to get a data structure back.
It's genera...
Ok, so that title probably doesn't explain my question well. Hopefully this makes sense. This is also my first application with jQuery, so forgive me if I'm doing something dumb.
I have the following function:
function getRandomImages(limit) {
imagesArray = new Array();
$.getJSON('createImageArray.php', {limit: limit}, function...
How does content hide show with animation in jQuery ? can anybody help me plz???
...
I have recently been experimenting with the tablesorter plugin for jQuery. I have successfully got it up and running in once instance, and am very impressed. However, I have tried to apply the tablesorter to a different table, only to encounter some difficulties...
Basically the table causing a problem has a <ul> above it which acts as ...
When using jQuery Ajax, I am receiving a parseerror in IE 6, Firefox works just fine.
My code is like this:
$.ajax({
url: 'test.xml',
type: 'GET',
dataType: 'xml',
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert('Error: ' + textStatus + ", " + errorThrown);
},
success: function(xml){
...
Dear all
I am using the jQuery. Now I need to classify the two lists
If any list having Id starts with outer i need to alert it Outer.
If any list having Id starts with sub i need to alert it Sub.
<ul id="nav">
<li id="outer1"><a href="#url"><b class="">Outer 1</b></a></li>
<li id="outer2"><a href="#u...
Hi,
I have a function that does the following:
binds all images on the page to a click handler.
when clicked, unbinds then makes a ajax request
binds the link again.
Theoretically this should work correct? (sorry don't have the code with me)
...
Hi,
I have a href tag, and next to it is a tag. I want to put new text in between the bold tags.
<a href=""></a> <b>old text</b>
So in my click handler, how can I get a reference to the text between the bold tag?
I know there is $(this + b) but how do I make sure it only gets the first and not ALL next items (like in the jquery sa...
So what I want to do is to coordinate some effects using jQuery for some AJAX calls that I'm working with. My problem is that the fadeIn for the second div fires at the same time with the fadeOut for the first div.
This could apply to other events as well so I'm curious, is there any way to make fadeId launch ONLY after fadeOut is done ...