Hello, I'm trying to attach a click function that adds a CSS class to all anchor tags inside of a specific div. Somehow I can't get jQuery to do this (no JS error either).
The div:
<div id="better">
<a href="1.aspx">One</a>
<a href="2.aspx">Two</a>
<a href="3.aspx">Three</a>
</div>
My jQuery code (inside of $(document...
I have the following JavaScript (and jQuery) code:
function checkEmail(email) {
if (email.length) {
$.getJSON('ajax/validate', {email: email}, function(data){
if (data == false) {
// stuff
}
return data;
})
}
}
I want the anonymous function to return data to t...
Hi there. I have a simple question for all of you jQuery lads out there. I would like to se an example of a simple jQuery bbcode function.
I use a old one now and it's pure javascript and uses onClick. I would like to create a new one based on jQuery. (and understand what I did and Why I didi it).
Can you guys give me a hand? :)
...
This is killing me. In both IE7 and 8, using jqModal, the screen flashes black before the modal content is loaded. I've set up a test app to show you what's happening. I've taken jqModal EXACTLY from the site, no changes whatsoever, no external css that could be affecting my app. It works perfectly in every other browser (including IE...
For instance, I want to have a html form that looks like this:
<table>
<tr>
<td>Field A:</td>
<td><input type='text' name='fielda[1]'></td>
<td>Field B:</td>
<td><textarea name='fieldb[1]'></textarea></td>
</tr>
</table>
What I want is to add a button that duplicates my entire above form, but changes the 1 to a...
I am using JCarouselLite to produce three scroll boxes on a website. 2 of the carousels line up properly (New, Gifts), but a third does not (BestSellers).
The image floats to the left because the plugin keeps calculating the width incorrectly. All three have the same underlying HTML code, but I can't get the BestSeller Carousel to line ...
This is strange. I am used to IE crapping out on problems with XML format, but this is the first time I have had a problem in Firefox.
The XML is created at this page:
http://www.harrahs.com/content/events/EventCalendarFeedXml.jsp?propCode=UHA&uniqueEvents=y&showTimes=y
The code I am using to pull in the XML is
//Read X...
Hi,
I haven't worked with jQuery or Javascript really. Could someone please tell me how I would go about implementing this Binary Clock?
...
So far I have...
$(document).ready(function(){
$("#AddProductButton").click(function(){
$("#product1").clone().appendTo("#products");
});
With...
<div id="products">
<div id="product" id="product1">
<select class="product" >
<%foreach(KODmvc.Models.Product prod in Model...
I have found similar questions and answers but afraid I am still a bit lost. I just want a set of links that will addClass to the body to change the background image. I only understand how to use the addClass property on the actual element being clicked, but I am not sure how to get that to add a class to another div. Thanks for any p...
After a page loads, I'm making an AJAX request to pull down an HTML chunk that contains tags representing a Facebook user profile picture. I append the result to a point in the DOM but the logos don't load, instead all I see is the default silhouette.
Here's simply how I'm loading the HTML chunk with jQuery
$.ajax({
url: "/faceboo...
I need to display list of news items from a database on a web form. I would like to display a fixed amount of data (say a certain height or number of characters) for each item on page load and then have a MORE button that would then display the full paragraph. I have seen how to use hide or slideUP/Down to hide the whole DIV tag, but h...
Here's a dead-simple webpage that leaks memory in IE8 using jQuery (I detect memory leaks by watching the memory usage of my iexplore.exe process grow over time in the Windows Task Manager):
<html>
<head>
<title>Test Page</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<script type="text/javascrip...
Hi, I'm completely new to jQuery. To be honest it is my first few days.
And there is my first question.
$(document).ready(function() {
$('span.head-span').parent().addClass('head-h').append('<div class="clx" />')
});
As a result I have this
<h1 class="head-h"><span class="head-span">This is Some Heading</span><div class="clx"/>...
i have a draggable div that has the overflow position to auto, so when the content is too big and i get a scroll bar,
since i haven't added a handle (i want the hole content of the div to drag it) when you use de scroll bar the div moves/draggs....
is there a way of excluding an element from the handle of a draggable div in jquery?
i...
I have a web page with a form. When the user submits the form, I want the server to make the browser redirect to a different page from the form action. Right now, I am doing this by using PHP's header function to send a 302 status code. It works fine.
I am trying to make the page on the server redirect the browser in the same way, regar...
Can I remove a specific CSS class from all XYZ elements within an element at once?
Example: Remove CSS class "active" from all <a> anchors within my search <div>.
If so, how?
...
Hello,
I am trying to get the Treemap plugin (http://www.jquery.info/spip.php?article40) working with jQuery v1.3.x. The plugin works with jQuery v1.1 and v1.2 but for some reason it fails with the v1.3 base.
This is the browser error "Error: uncaught exception: Syntax error, unrecognized expression: >"
Does anyone know changes occurr...
Hi all, I'm using this jQuery Validation script to submit my form(s), but I need some help tweaking it to display the message, and to show the form again (after submitting)
http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
^^ The Code
http://www.position-relative.net/creation/formValida...
Hello, I'm trying to reduce my 'onmouseover' event listeners in my table (in which I highlight rows on hover). I want to do this by attaching an event listener to the entire table instead of each <tr> (that's how I have it now). The reason is that IE is reacting very slow and the only answer I found to this was to reduce the number of ev...