#exceptions is a html table. I try to run the code below, but it doesn't remove the table row.
$('#exceptions').find('tr').each(function(){
var flag=false;
var val = 'excalibur';
$(this).find('td').each(function(){
if($(this).text().toLowerCase() == val)
flag = true;
});
if(flag)
$(this)...
What is the jQuery alternative to the following JavaScript code?
var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
I believe a jQuery alternative would be more cross-browser compatible?
...
I'm trying to figure out how to validate a form element with a mix of radio inputs and a text input:
<label>Question?</label>
<input type="radio" class="mandatory" name="questions[1][]" value="1" />answer 1<br/>
<input type="radio" class="mandatory" name="questions[1][]" value="2" />answer 2<br/>
<input class="ignore" type="radio" id="q...
Hey everyone. I've written this simple function that is supposed to load a portion of an XML file on mouseenter. It works fine when I specify the data source explicitly, shown below.
I have a number of '.invest-port-thumb' divs, each with a unique link.
The following code works finebut it loads the whole XML fileand I only want a po...
Hello.
I have something like this:
function cat_filter() {
$.ajax({
type: "POST",
url: 'json/cat_filter.aspx',
data: "catId=" + "&styleId=" + "&colourId=" + "&sizeId=" + "&minPrice=" + "&maxPrice=",
dataType: "json",
beforeSend: function () {
//load loading cursor
}, succe...
Is it possible to use fancybox to load a specifc div #id from another page rather than loading the whole page via an iframe?
For example I can use
$('#link-whole').fancybox({
'width' : '80%',
'height' : '80%',
'type' : 'iframe',
});
with...
I prefer my datepicker to be formatted with this option
{dateFormat: 'mm-dd-yy'}
Ex: 06-16-2010
But, I would like to allow people to enter in a slash as a seperator instead of a dash if they choose.
Is there a way to setup the datepicker so that it defaults to mm-dd-yy but wouldn't prevent someone from entering mm/dd/yy?
I do know ...
We have a script used for each .item:
$(".item").each(function(){
item_link = "http://...";
block = $('.block', this);
$.get(item_link, function(data) {
var src = $('img.slide', data).attr('src');
block.html(src);
});
});
item_link variable is uniquie for each query.
There can be 100 .item or more.
Th...
I'm trying to use jQuery to insert HTML into a table element. I've been messing variations of the selector (below) with no luck. Can someone help me?
My Selector:
$j('#ctl00_body_gridData_dom').children('table:first').append("<thead><tr><td colspan='6'> </td><td align='center' colspan='7'>EM SPECS</td><td align='center' colspan=...
This is on the one that pops up when you click the linked input element. I want to be able to insert some static text underneath the table of dates that will appear and stay even if the user scrolls to different months.
I managed to sort of getting working by, with jQuery, using
$('.ui-datepicker').after('text');
on the .ui-datepicke...
I am using jquery button click to post all the values in a selectbox to a PHP page, but this code does not seem to work. Can anyone please help?
<script type="text/javascript">
$(function() {
$("#btn1").click(function () {
var arr= new Array;
$("#target_select option").each (function () {
// You ca...
using drupal with lightbox2 to open a form. this form is from a custom module.
the module has a setting: 'onsubmit' => 'return form_submission(this);' and that appears to be working correctly.
I've included the functions.js in the theme.info file and it's showing up, i can open that file and see the function.
for some reason, i keep g...
So I have this shopping list coded in php and js:
http://www.whatcouldicook.com/recipes/planner
So people can add, delete or sort the list and thats fine, I dont want multiple lists and instead just have a list item containing a heading tag to represent a new list.
All this works and then using serialize I can save the ordering/modify...
I have few texboxes, dropdown lists, etc.. They have their css classes. I want to select all elements of specific class(es) but NOT the last element from group of all classes.
<asp:TextBox ID="TextBox1" runat="server" CssClass="class1" ></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" CssClass="class2" ></asp:TextBox>
<asp:TextB...
I have a jQuery plugin I use to dynamically create and render a form on a default.aspx asp.net page, then submit it. The page it gets submitted to is a pdf.aspx page. The page builds a PDF then uses Response.Write to write the file (application/pdf) to the browser. I use the same method to render XLSX files to the browser as well. It...
Is it possible to make it so that a jqGrid will have a width set to 100%? I understand that column widths must be an absolute pixel size, but I've yet to find anything for setting the width of the actual grid to a relative size. For instance, I want to set the width to 100%. Instead of 100% it seems to use an odd size of 450px. There is ...
I have a bunch of 200X120 thumbnails and a bunch of high quality images, Apparently when I just resize the thumbnails with img size the quality suffers, so we are loading two images from the server the image thumbnail and the actual, I am just trying to optimize my site for speed a little saw someone mention embedding thumbs in the image...
Hi,
I am creating this content slider, you can view/edit here:
http://jsbin.com/esame4
I have put in place setInterval so that animation runs automatically, however, when it is run for the first time, google image is shown but not afterwords. Should be simple but i am unable to figure out the problem.
...
Hi everbody,
i am developing an asp.net project and i use jquery with it but when I use masterpage with content page. My jquery code does not working but if ı use in a normal page without master jquery work efficiently.
<script type="text/javascript" language="javascript" src='<%= Page.ResolveClientUrl("~/js/Default.js") %>' ></ script...
I want to fade in a background of an entry within a div - this is to show the user what the most recent entry is on page load.
I want it to do it on page load, without having to click or hover or anything, just when the page loads.
I have this:
$(document).ready(function() {
$('#box').fadeIn(5000, function() {
// Animation compl...