I have a select menu that looks like this:
<select id ="cal-category-select">
<option value="/event-sort/list/2009/9/sports/">Sports Events</option>
<option value="/event-sort/list/2009/9/fine-arts/">Fine Arts Events</option>
...
</select>
when the user selects an option from the select, I need to pass the option value att...
I'm trying to create a bbcode filtering solution that works with both PHP and Javascript. Right now I'm working on the javascript. I'm having trouble getting the new RegExp constructor to recognize the patterns in my json. Here's a small bit of sample code that reproduces the issue. Any insight would be greatly appreciated!
bbcode.json
...
dialog() is already initiated at this point with:
$("#repshare_dialog").dialog({autoOpen: false});
Next I'm trying to open a dialog box with a title, is this right?
$("#repshare_dialog").dialog({
open: function(event,ui) {
title: "foo"
}
});
...
I am trying to find a span element who has an id in a particular pattern. Its main use is to find certain elements rendered by an asp.net (aspx) page which is derived from a master page.
...
I have a div, with an image that needs to be stuck to the bottom-right corner. This is easily done with:
#div1 {
position: relative;
}
#div1 img {
position: absolute;
bottom: 0;
right: 0;
}
However, the height of the div changes dynamically as pieces of a series of nested lists show and hide themselves on hover events...
This is probably a super easy question but I'm banging my head on it for some reason.
Here is the jQuery I have
$(function() {
$.get(urlGetContainerNumbers, function(data) {
console.log(data);
for (var idx = 0; idx < data.length; idx++) {
var containerNo = data[idx];
console.log(containerNo)...
Hi..
How do I refresh element (div, class whatever) after another jquery action?
I have this action which is deleting a record from database and I need to refresh div which is fetching some other data from database as well...
Well here's code:
$(function() {
$(".delete").click(function() {
var commentContainer = $(this).p...
How can I just change the get parameter without redirecting?
parent.location.search = "?after=20";
// ok that changes, but also redirect to the new page
Any solution? Or answer is no, if its no, please write big no.
...
Hi all. I am new to jQuery and just wrote this small piece (with PHP knowledge) and was wondering a) would it work b) how would i return a value acording to its key value?
var boxHeightArray = [];
var boxNameArray = [];
$("div[class=dropDiv]").each(function(i){
var height = $(this).height(true);
var name = $(t...
I'm reading the jQuery load documentaion and it mentions that I can use load to perform a GET request by passing in extra parameters as a string. My current code with my parameters as key/value pair is:
$("#output").load(
"server_output.html",
{
year: 2009,
country: "Canada"
}
);
The above works fine but i...
I'd like to find out if an input is a checkbox or not, and the following doesn't work:
$("#myinput").attr('checked') === undefined
Thank you once again!
...
I've got a view with a single exposed filter (a select). It's using ajax to re-populate when the user clicks "Apply". I'd like them not to have to click that and just re-populate when the select is changed. I'm assuming I'm going to need some JS more or less like this (though this doesn't quite seem to be working):
$('#edit-tid').change...
I'm having a small issue with a bit of jQuery:
function getQuickResults(terms)
{
var url = '/Search/PreviewSearch';
$.ajax({
type: "POST",
url: url,
data: { terms: terms },
dataType: "json",
error: function(xhr, status, error) {
alert(error);
},
success: funct...
I have a page that displays a list of records. The user can select the record status using radio buttons, e.g.:
<div id="record_653">
<label><input type="radio" name="status_653" value="new" checked/>new</label>
<label><input type="radio" name="status_653" value="skipped" />skipped</label>
<label><input type="radio" name="status_...
I have the following:
var element = $(this);
var divName = element.parents("div:eq(0)").attr("name");
$.each(boxInfo,function(i,n) {
if( n.boxName == divName )
{
var newHeight = n.boxHeight;
}
});
clicked.parents("div:eq(0)").animate({
height: newHeight + 'px'
}, 1000);
Problem being "newHeight undefined". But...
I have followed Phil Haack's tutorial and everything works fine but now I want to implement search filters in my grid and I noticed that it sends a filter string attribute with my search string to my controller but its in json format... I have no idea how to get the values and use them to implement my search function..., Im using linq to...
Is there a way to get the selected value (or text, or index) of a select box that the server fills (using ASP.NET) in the client? I've tried $("#ID").val() - but the only time that works is when I continue to another page and then go back. Even then, the value that is returned is the previously selected value - if the user changes the ...
I'm trying to retrofit a page to read from XML rather than the DOM, and I'd rather not use $(xml).find('blah') for every single call, and I was wondering if there was a way to point jQuery at xml, rather than the DOM.
For instance, I'd like to be able to navigate my xhtml with the jQuery method as such:
$('blah').whatever
Is this possi...
I need to drag multiple items simultaneously within a jquery sortable container. In this case, it's a series of nested divs within a parent div which has the sortable() behavior applied. Any suggestions?
...
I've done this before, but I'm having trouble getting this to work...
I need the following jquery to have a .stopPropagation function, so the animation won't go crazy if the user hovers over three elements too quickly!
$(function () {
var tabContainers = $('div.subMenu > div');
tabContainers.hide();
...