I'm trying to change the background positioning for a label based on whether or not an adjacent checkbox is checked.
I figured out how to select adjacent fields with jQuery and I verified that this selector is indeed working:
$("input[type='checkbox'] + label")
But I can't figure out how to access the checkbox.
Here's what I have ...
Is there a way to setup autocomplete in PHP/jQuery that can quickly run through thousands of rows in a database?
I have a job board where the user enters his/her college - and I want to offer autocomplete. Problem is, there are 4,500 colleges in the united states and a seems like an awful solution.
Is there a good way to both make th...
Hi
I have created webpage and I am calling it from Jquery function. Technically I used {info} as image button and I am replacing with it with .aspx so that it is redirecting to that page.
.replace("${info}","/_layouts/webpage.aspx");
The web page is opening in new browser window. Is there any way that I could make it as pop up so I ca...
So I have an issue, when I load a document, I have a class called .active which changes depending on what list item you are viewing using keyboard navigation. The problem is when that list item has the class active assigned to it, I would like that list item only, on hover, to display another piece of content.. But the problem is, I beli...
I would like to make an async GET request that returns back a document with MIME content type and cause it to bring the browser's 'Save' dialog.
Previously, I used to make a regular HTTP (non-async) call through a link and the returned response had a 'Content-Type' and 'Content-Disposition' like so:
Content-Type: text/plain
Content-Di...
This is currently working, for the most part:
$(".nextproject").click(function() {
$(window).scrollTo(
$(this)
.parents()
.nextAll()
.find("li:visible:first"),
1000,
{easing:'easeOutExpo', axis:'x', offset:-75 }
);
});
You can see the demo here: http://www.studioimbrue.com/index2...
I'm using JQuery to call an asp.net webservice that is set in web.config to only allow logged in users access.
This works fine. When run locally from Web Developer Express, if I logout and try call the webservice I get a 401 message returned which I then use to redirect the user to the login page. However when run on the live server I'...
Hello,
I have the following jQuery script:
$(document).ready(function() {
$.ajax({
url: 'temp.ajax.php',
type: 'GET',
success: function(data){
$("#total_plus_aditional").val(data);
}
});
tempTotal = parseFloat($("#total_plus_adi...
I feel like $('.selector', myContext) and myContext.find('.selector') are two identical ways to get the same information. Is there a practical reason when you would use one over the other? Speed perhaps?
...
Two questions please:
1) In this example, http://jsbin.com/ijuli, how do I make it so when one image is clicked, the other un-hidden .clickSave divs go back to hidden.
2) Is there a more efficient way to write the JS code?
Jquery
$(".clickSave").hide();
$(".one").click(function() {
$(".clickSave.one").toggle();
});
...
To make my question more specific, I read the documentation on .each() for jQuery, but I am a little more confused. I have this code:
$.fn.imgAreaSelect = function (options) {
options = options || {};
this.each(function () {
if ($(this).data('imgAreaSelect')) {
if (options.remove) {
$(this).data('imgAreaSelect'...
I have one slect box with various options.
I want that when page loads then one option with value e,g 10 should be preselected with jquery
how can i do that
thanks
...
I am using form ehere use has to type the image name like
images/pic1.jpg
Is there any way that user can graphically select the image and then the path automatically gets populated in that box
thanks
...
I am using jQuery with TinySort and I like to sort by prices and show only certain elements based on their classes.
I am able to get the sorting down easily just not the hiding and showing of elements. Can you take this that one step further?
<div id="properties">
<div id="389900" class="commerical">389900</div>
<div id="835000...
Hey all,
I seem to have same issue as the one I posted before. I want to hide all the divs that are there by default and only display one. Then the user can click on a side tab to display another. Problem is the divs are only hidden for a second after page loads but reappear soon after. This is code that's suppose to hide the divs of th...
Hi all,
why is my <input type="submit" not display on http://ballpointradio.com/new/page_edit.php? It's supposed to be underneath the textarea.
This really is baffling me!! Is it my jQuery? I'm pretty sure it isn't...
...
Is there a way to test if a certain element (.container) is hidden, in a whole document? Such as (which doesn't work properly):
$(".showall").click(
function () {
if ($(".container").is("hidden"))
{perform a task}
else
{return false;}
});
...
Hi,
http://api.jquery.com/index/
Is there a way to use jQuery index() method to find the index of an element related to the overall document?
I mean, if I have a bunch of img tags in a document, is there a way to know, regardless of their position in the document, their index?
example :
<body>
<img />
<div>
<img />
<div>
...
Hi,
I'm trying use Lift and CalendarMonthView widget to build a
appointment system.
CalendarMonthView works with Lift very well, but I have a problem that
could not change the style of some CalendarItem that displayed on the
calendar.
According to the API document, I use the following code to change the
css class of certain CalendarIt...
I have been doing tons of Ajax recently and work with lots of my domain objects converted their JavaScript counterparts. I found myself writing several functions that looped through the arrays of objects to search by property values. I decided to write a simple jQuery plugin that would allow me to search an array of primitive or complex ...