I am using jQuery, and have a table element that contains a few hundred rows. I want to remove all of the rows, and then add a new set of rows. I do this by calling remove and then append on the parent element.
My append logic is fairly fast, and follows the advice given here: http://www.learningjquery.com/2009/03/43439-reasons-to-use-a...
i'm making a lightbox, i've followed tutorials just to get this far, and i'm so close. i'm having problems with this line:
}).attr('src', 'imghref');
if i replace 'imghref' with 'images/watercolor.jpg' then it works fine, but i want 'imghref' to be the href of the link the user clicks on.
my second problem, is that if i replace 'imgh...
Is there any way to fade out the set value of a field on focus, and then fade it back in on blur if nothing was entered?
I'd like to fade out "Enter your name..." on focus, but fade it back in on blur if the user didn't enter anything.
Thanks!
...
Hello,
I have a problem with the jquery $.get function.
I'm trying to get data from PHP file needed to check does the specific user has subscription and is he recorded at ignore list by other users.
With this jquery code I can get only one of this two data from MySql using PHP file.
The jquery code is:
$(document).ready(function(){
...
All,
Is there any light tool in jquery which produces a menu like tipsy tooltip or jgrowl with onclick event
Thanks.
...
Hey,
I have a site going here: http://treethink.treethink.net/
All the fancybox iFrames work but if you go the portfolio section then click on one of the links it takes you to a page and closes Fancy Box.
How can I modify Fancy Box so that when one of those links is clicked inside the portfolio iFrame, it stays in the iFrame and goes t...
On my site the only place i use time is when i insert into the DB.
When i pull it i would like to display the time according to the user time zone. I am generating this part of the page in C# (served in ASP.NET but not using .aspx code files).
How do i display the time according to the user time zone? I have a feeling i need to have the...
How do I retrieve the contents of a simpleXMLElement variable from a php file with jquery?
...
$(document).ready(function() {
$(".delete_user_button").click(function(){
var username_to_delete = $(this).attr('rel');
$.ajax({
type:"POST",
url:"/delete/",
data:{'username_to_delete':username_to_delete},
beforeSend:function() {
$(this).val("Removing..."...
Hello,
I am trying to populate a couple text box fields in my MVC application. I have a text box that a user can enter an ID and then click search, and based on the ID input from the user, information should be brought back to populate First Name, Last Name text boxes on the same page.
The problem I am having is bringing back this d...
So, I have an animated drop down menu that slides down when your mouse is over it, then fades away when it isn't. Simple enough. But if the use moves the mouse before the animation is complete moving down, then it will either jump to the end of the queue exposing the entire menu and then fading, or it deforms the menu by making it shorte...
Is it possible to find out what form you're currently on from a js file?
This is my issue.. I have a form, form1, that includes a table.. when a row in the table is clicked on another form pops up, form2. If the user "saves successfully" on form2, the form closes and form1 comes back into focus..my question, is it possible to send an id...
I have a div with 3 internal hrefs. I need to make the div clickable and have it inherit one of the internal hrefs. Not a problem... however this then causes the JS to overide the other links inside the div, the ones I'm not inheriting for the parent div. Here's my code:
<script>
$(document).ready(function(){
$("#Products div.product...
could one link the latest jquery from google code instead of having a local copy?
if yes, could someone provide me the link for it so i can link it in from javascript.
thanks!
...
I have five forms in the page. I have my validation also in place using jquery validation plugin. There is this odd little case where I want to cover - wherein the server returns no results (for any of the forms) and I need to display the same jquery validation. I was able to do that with :
$("#form1").validate().element( ".myid" ); ...
I'm using jquery to display/hide my comments on my blog. I show a bubble besides the title of the post displaying number of comments. On clicking that bubble, the comments show up at the bottom of the post.
My problem is, if the post is long(which they usually tend to be), the user has no clue there's a comment section popped up below t...
I am writing a plugin and need to live bind a click. The plugin works fine when I do a normal click bind, but not a live bind.
I've boiled the plugin down to the basics:
(function($) {
$.fn.liveBindTest = function() {
return this.each(function() {
$(this).live('click', function(){
console.log('live click');
...
I tried to use $.cssRule() plugin and found that it makes it inconvenient to debug those rules in FireBug because each rule appears to be attached to every css file loaded on my page and consequently defined many times.
Source code shows that it does that on purpose inside that for loop: for(var i = 0; i < document.styleSheets.length; i...
I am trying to learn JQuery and having some difficulty understanding the process. I read through several posts, and maybe it's my weak understanding of javascript that's the hindrance, but I'm wanting to learn. My goal is to use the Accordion UI for a menu system; to have the main menu items (#sidebar ul.accordion li a .opener .selected ...
Consider the following partial, it gets inserted into a page if someone clicks ajax "add comment" link. The question I have is: Is this the best place to include that javascript?
I thought it was best to put it in the application.js, but because the partial gets added via ajax, the validate method called within $(document).ready block ...