Greeting,
if I have asp.net checkboxlist control :
<asp:CheckBoxList id="list1" runat="server">
<asp:ListItem>One</asp:ListItem>
<asp:ListItem>Two</asp:ListItem>
<asp:ListItem>Three</asp:ListItem>
</asp:CheckBoxList>
how to get the text for second item which is (Two) and has index 1 using jquery when it is check or by pas...
how can i make the containment to be a subset of cells. ie leaving out the header row and the leftmost column?
...
I have a page with 3 content areas (divs with the class "section").
http://refreshperspective.com/CLIENTS/unboxed/products.html
I'm using JQuery to scroll horizontally to these three divs. The issue I am having is keeping the content in the div centered when the window is resized. I have been using the following code:
var wind = $(win...
I am using JQuery UI dialog to display a confirmation dialog when a button is clicked. I want to return 'true', when OK is clicked and false otherwise.
Associating dialog open call in onClick (as given here, $dialog.dialog('open');) event does not serve the purpose. So, as a work around, I followed approach something similar to this: ht...
I'm trying to use Flot to plot a graph with dates. I've followed the advice on this string: here but it doesn't seem to work for me. Here is my modified JavaScript (from that other question):
$(document).ready(function () {
var d1 = [[1262818800,100],[1262732400,100],[1262646000,100]];
var d2 = [[1262818800,23],[1262732400,2...
I'm trying to find a lightbox style plugin in jQuery that displays thumbnails at the bottom of the picture (or video, or whatever).
I found plenty of lightbox plugins, but none that allows navigation by thumbnail inside the box. The plugin must be able to open images, swf and inline content. I realize that jQuery will not be able to gen...
I have some javascript that can appear on many different pages. Sometimes those pages have been accessed via a URL containing an anchor reference (#comment-100, for instance). In those cases I want the javascript to delay executing until after the window has jumped. Right now I'm just using a delay but that's pretty hackish and obviou...
I know to use eval() to parse JSON to an object, but how do I parse an object to JSON format using JavaScript?
Thanks.
...
So I'm starting to get into jquery more and more lately. I've created custom radio buttons and doing this to show that a radio button is selected:
$('.radio_1').mousedown(function() {
$(this).toggleClass('selected');
$('.radio_2').removeClass('selected');
$('.radio_3').removeClass('selected');
});
$('.radio_2').mousedown(functi...
using jquery, how would i find the closest match in an array, to a specified number
For example, you've got an array like this:
1, 3, 8, 10, 13, ...
What number is closest to 4?
4 would return 3
2 would return 3
5 would return 3
6 would return 8
ive seen this done in many different languages, but not in jquery, is this possible to d...
hi
i have made a system using which a image would be re sized according to the browser
window
The example here
The code example
function scale_down() {
scale = 0;
console.log(img_width + ' ' + img_height);
scale= ( img_width / winwidth );
if ( ( img_height / scale) < winheight )
...
Does anyone know of existing javascript libraries to re-create this photo gallery sample found on dailylife.com maybe using jquery and css?
They seemed to have it automate the creation of different sized portrait and landscape photos so it fits nicely in these 4 columns with overall equal heights across the columns. Thanks for any inp...
I'm trying to use a little jQuery here to detect which keys are being pressed.
I've a lot about trying to use functions to detect ASCII codes and such to see which keys are being pressed, but I'm a little confused.
Also, what's the difference between keyUp, keyDown and keypress?
...
I have created a jquery plugin to perform a watermark style on a textbox.
Now i want to create another plugin that inherits from this plugin - is this possible? both plugins perform very similar tasks and dont want to rewrite the similar functions.
...
i need jquery to work on a browser locally. how do i know if it is installed and how do i install it ?
my question is specific to being able to run this code:
onmouseover="evt.target.setAttribute('opacity', '0.5'); $('#someDiv').show();"
onmouseout="evt.target.setAttribute('opacity', '1'); $('#someDiv').hide();"
...
I have a select box and on every change I am going back to my controller and fetching some data. This data is then loaded into a div.
jQuery:
$('#groups').change(function() {
$('#emails').load('/notifications/get', {value: $(this).val()});
});
Controller:
class NotificationsController < ApplicationController
def...
when the user puts his mouseover this object i want a message to pop up:
onmouseover="evt.target.setAttribute('opacity', '0.5'); $('#someDiv').show();" onmouseout="evt.target.setAttribute('opacity','1)'); $('#someDiv').hide();"
what exaclty does someDIv mean? where do put the text?
i am doing this and it is not showing the text at al...
I'm creating this script which loads the data from JSON which is encoded in a PHP file (the JSON is valid).
When a div is clicked on, it should show the data from the jQuery, which is done here:
function quickView(pid) {
$.getJSON('project.php', { id: pid, view: 'true' }, function(data) {
$('#view-' + pid).html('<p>' + data.n...
Possible Duplicate:
what does #someDiv mean?
i am doing this:
onmouseover="evt.target.setAttribute('opacity', '0.5'); $('#someDiv').show();" onmouseout="evt.target.setAttribute('opacity','1)'); $('#someDiv').hide();"
but i guess i need something called an ID selector?
anyway how do i make it so that when there is a mouseov...
I am using a e-commerce package and there are sections my client wants disable to hidden. The problem is the package has all their labels under the same class and I am not sure how I can target certain ones in order to hide or disable them.
I have 5 and would like to hide the 3rd one, lets say. They are in a table to so it looks ju...