I'm really new to Jquery and I know my code below is wrong. Can someone help me fix it so it works properly?
Here is my code.
$(document).ready(function() {
setTimeout(function() {
$('a.delete').click(function(){
$("div.delete-banner").delay(6000).fadeOut();
// prevent default action
return false;
},5000);
...
Hey guys, how would I go about making the following animation for my form submissions? I figured instead of typing it, I would create a visual.. Let me know if you think this is easily done.
...
Have a script to add / remove options from a select field -- the "value" of the option I want to remove should be equal to the "class" of the link clicked. I've tried several different versions of this script and I cannot for the life of me figure out how to properly get the variable delText into the function to remove it. help pls!
...
I have a table like this:
<table id="tbl">
<tr><th>My Table</th></tr>
<tr><td><div class="arrow"></div></td></tr>
<tr><td>The second row</td></tr>
</table>
I want to show / hide the tr after arrow. I have written this script:
$(document).ready(function () {
$("#tbl tr:odd").addClass("odd");
$("#tbl tr:even").ad...
Hi folks,
I have a form which displays in a jQuery FancyBox div with id "mcform". When a button is clicked I call this function:
function postit() {
$.ajax({
type: "POST",
url: 'listSubscribe.php',
data: "fname=" + $("#fname").val() + "&lname=" + $("#lname").val()
+ "&email=" + $("#email").val(),
success: fun...
Hi,
I have a structure something similar to,
<div class="div1">
<a class="myimg" href="#">clickme1</a>
<span>myspan1</span>
</div>
<div class="div2">
<a class="myimg" href="#">clickme1</a>
<span>myspan2</span>
</div>
CSS
<style type="text/css">
.div1
{
border: 1px solid red;
}
...
I have a script that appends some rows to a table. One of the rows has a delete link, and for that I am using a ActionLink, however the id of the element is received via js, and this is nor working:
$("#Table").last().append('<tr><td><a href=\"<%:Html.ActionLink("Delete", "DeleteElementFromSet", new {id=%>Id<%})%>">Delete</a></td><td>'...
I am using the jquery event search datepicker in my code which is present here
. I am new to jquery and I am using the exact same code. The default date is set to one week ahead of the current date.
how do i make the default date to the current day? (simple question, but what is the correct format to do so?).
since i am using 2 fields ...
This might be a shot in the dark, but what the heck. It would make for an astounding effect in my website for a welcome message to new users.
In Hollywood, some movies present text with a wavy blur-to-focus and simultaneous fade-in effect on text (and the entire book, actually), such as perhaps in a Harry Potter movie. I can't pin it do...
I can rotate a div with css, and jquery .rotate, but i don't know how to animate it.
...
The top menu in my Zotonic site renders in place without acting like a desktop application menu.
All items in the menu are rendered on screen with none hidden and it looks terrible. It looks like it is supposed to be a superfish menu, but I don't see the necessary code for superfish to work. My stop-gap solution is to have a single-le...
Hi,
I am trying to save data into a variable like so (so i can keep track of what was posted to jquery)
$(document).ajaxSuccess (function product(a, b, s) {
document.write('url: ' + s.data);
});
I am using flexigridlink text and the above code is printing out the correct data, but preventing flexigrid to load, and hanging the pa...
I have a button says remove selected button. On selecting a particular row or multiple rows I want delete it from the jqGrid..How can I achieve this ? can I use delGridRow method.
Any help will be appreciated.
Thanks!
...
This is the final step before pushing errors for inline validation:
$(("#fn_fn").parent('div:equ(0)')).addClass('item-error');
it hits this line and gives the following:
"Object doesn't support this Property Or Method"
...
At the top of my script I have created a variable out of todays date:
<?php $today = date('dmy'); ?>
I then have a table and each table row has a class either of "nodate" or of a six digit number, this number represents a date. eg 230910 (yesterday).
I am trying to write some jquery that hides the table row if the class (six digits) ...
I'm trying to select the first link on a page after the page has completely loaded and redirect the page to the link on the first page.
I understand how to use a selector, but I'm stumped as to how I can pick up the first item after the page loads. I'm assuming once I have the value I could use
window.location = "http://www.google.co...
I am using a tooltip I got a positioning error on ie. I put a jquery browser code
MY Tooltip
$('.tooltip').tooltip({
position: "bottom center"
});
Then I want to add an argument like this
$.browser.msie({
// I wanted to add tooltip setting here
});
How can I do that? please help
...
I'm using Colorbox to show the html content of hidden divs on my page. I can get this to work perfectly with the following:
$("a.colorbox").colorbox({width:"600px", inline:true, href:"#344"});
This will show the div with the ID of 344.
However, because I'm trying to build a scalable and dynamic page with WordPress, I want to be able...
Not sure how to phrase this question exactly, but I'll give it a shot. (If you have a suggestion for how to phrase it better so others can find it, tell me and I'll edit it).
I want to know the best practices for handling clicks on a page that are then processed using AJAX. I have been temporarily using code that looks like this in the ...
I have written a script to slide a div horizontally and stop at a specific margin-left value.
The margin left depends on the link which was clicked, so I have used a calculation to find that specific value. When i try to pass the variable into the .animate({"margin-left":value},"slow");
Here is the code
var marginLeft = parseInt(...