Hi,
I have the following code in my application:
$(".deleteproduct").click(function() {
id = this.id;
alert("id: " + id);
});
If i run my site nothing happens when I click on an element with the class deleteproduct. But when I place breakpoints before line 1,2 and 3 it works like a charm.
The elements with class deleteproduc...
On button click I have the simple jQuery post:
$(document).ready(function() {
$.post("/cgi-bin/stats.exe");
});
However, nothing seems to go through to the server side. Any suggestions?
Thanks.
...
Hi. I am using the following css to create list items with a chckerboard background ( every other list item has a grey background, which shift every row to create a checkerboard pattern:
li:nth-child(8n+2), li:nth-child(8n+4), li:nth-child(8n+5), li:nth-child(8n+7) {
background-color:grey;
}
Is there way I can do this using jquery...
Hi all, I've been trying to use jquery to grab the information from $_POST and return the user back to the actual form if their email address already exists in the system, however I can't seem to get jQuery to grab the php variable $post (which has all the information from $_POST) and spit them back to the original form. Could someone he...
On the select event of the datepicker I need to add and set values in multiple rows. In other words, I have something like this...
Days Value
Row 1 7
Row 2 2
Row 3 3
I have the "Days" and "Value" columns as textboxes. When I select a date from the datepicker I need to add the "Days" value for each row to the date ...
Preface: I am sure this is incredibly simple, but I have searched this site & the jQuery site and can't figure out the right search term to get an answer - please excuse my ignorance!
I am adding additional form fields using jQuery's ajax function and need to then apply additional ajax functions to those fields but can't seem to get jQ...
In a normal aspx page I've set up a jquery tab system. When a particular tab shows up I wire up an ajax call to get another html page with the following content. It is simply a form with some javascript inside of it.
<!-- demo.htm -->
<form method="post" action="post.aspx">
<div id="fields">
Class: <input id="txtclass" name=...
I have a variable that has this string:
<DIV><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">[If the confirmation is active the subscriber will receive this email after succesfully confirming. If not, this will be the first and only email he will receive.]</SPAN></DIV>
<p align=center>
<input class=fieldbox10 type = 'button' name...
Hi all,
I'm trying to redo this in jQuery:
<script language="JavaScript" type="text/javascript">
var thisIsSelected = '<?php echo $_POST['image']; ?>';
var sel1= document.getElementById('image');
sel1.value = thisIsSelected;
</script>
But I seem to keep breaking it lol
Basically I want jQuery to check if $_POST['image'] exist...
I'm trying to get cross-domain Ajax to work. I downloaded a PHP proxy script from the Yahoo Developer site, ran it from command line and verified that it receives the XML from the server with a GET request.
Now, I'm trying to connect to the PHP script within JS with no results. I have the following:
<script type="text/javascript" src=...
I want to use jQuery's ajax functionality in a DotNetNuke module I'm developing.
I want the ajax call to be authenticated via DNN's membership functionality.
I want the ajax response as json.
How can I do this?
I've looked at IWeb and IWebCF -- it's not clear to me from much Googleing and scanning the forums whether these modules wou...
Hi, I have this HTML:
<div id="mytabs">
<ul id="main-tabs">
<li><a href="">Link</a></li>
<li><a href="">Link</a></li>
<li class="filter">
<ul id="filter-controls">
<li><a href="">Filter by something</a></li>
<li><a href="">Filter by something</a></li>
<li><a href="">Filter by something</a></li...
I have 2 keydown handlers:
$(document).bind('keydown', function(e) {
if (e.keyCode == 75) {
// handler1 strategy
} else if (e.keyCode == 78) {
// handler2 strategy
}
});
How can I unbind one handler without affecting all the other keydown handlers?
updated.
...
Disclaimer: JS novice
I have a JS widget that depends on JQuery. The widget's going to be embedded in a 3rd party site but I figure out how to avoid declaring dependency on jquery on the widget-hosting page:
3rd party's page:
<head>
<script
type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"&g...
I have two related questions...
How do I update an HTML element (let's say a p tag) with the correct date when I click on a day in the jQuery UI datepicker plug in?
If I have another way to selecte a date aside from the datepicker, how do I then update the datepicker's selected date (it's adds a class of "ui-state-active" to the date)?...
Hey Guys,
I have the following html:
HTML markup
<ul id="test">
<li><a href="http://www.yahoo.com">yahoo</a></li>
<li><a href="http://www.google.com">Google</a></li>
</ul>
And some JS code:
JQuery/JavaScript Code
$('ul#test').each(function()
{
var select=$(document.createElement('select'))....
I want to count the total divs inside a container and toggle their visibilities with structure like this. Please also note that the div.content may also reside inside another nested or even nested-nested containers. That's why I handle it with jquery to add div.topmost for each topmost parent container:
<div id="parent">
<div class="c...
Im trying to take a link either when clicked or hover over be able to grab the attribute href and tell if its a hyper-link or not. Also i want it to be able to tell me if its a hyper-link to my own site. Plus various other filters.
The main purpose for this is so that when a internal link is clicked it will tell ajax to grab the conten...
I have a table, and I want get the first “td” in all rows.
My jquery here:
$("table.SimpleTable tr td:first-child").css('background-color','red');
and my HTML here:
<table class='SimpleTable' border="1" ID="Table1">
<tr>
<td>Left</td>
<td>Right</td>
</tr>
<tr>
<td>Left</td>...
Sorry if this has already been solved elsewhere but my searches have been able to turn up nothing and my attempts at solving the issue myself have made even less progress. :P
Put quite simply I have a table that is using the jquery tablesorter and it's zebra widget.
In this table there is a hidden column. I've so far been able to make i...