i make a jquery function and called it by linking.
<a href="javascript:myfunc(ID)"></a>
and i want to check in my function that button is second time click or first time
and i want to make different different event on first and second click()
...
Hi,
Normally, i'm using Modernizr for regular feature detection but it can't detect browser selector support (i.e: :nth-of-type() selector).
Is there a way to detect selector support of browser with jQuery?
...
Hello All,
I have a slideshow running with textquotes. These quotes contain a custom font provided by cufon. This all works fine.
However when the slideshow fades in or out, the text gets a dark border or shadow. I think its a transparancy issue in IE but I can't find a solution.
I'm using the jQuery plugin Cycle for my slideshow, and...
How i can make a function click on image that have a classname 'img'
<img src='img' class="img" id="fu1">
<img src='img' class="img" id="fu2">
<img src='img' class="img" id="fu3">
i want to make a function on click of image who have a class 'img'
how can i track the id of img who is click
ex: if i click first image then how i can tr...
For some reason my json twitter parser isn't working?
Anyone got any ideas as to why?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
function outputHtmlToDiv(tweet,i){
count = i + 1;
$('#wrapper #sidebar .profile')...
I want to merge recursively arrays..
My code is:
var allitemorder;
var itemorder;
$('.divclass').each(function () {
itemorder = $(this).sortable('toArray');
allitemorder = $.merge([], itemorder);
});
Kindly help.
...
<tr onmouseover="$('#actions').show();" onmouseout="$('#actions').hide();" >
<td>
<a onclick="showContacts();">Group Name</a>
</td>
<td>
<span id="actions" style="display:none;">
<img src="../images/Delete-icon.png" onclick="del();"/>
<img src="../images/add-16.png" onclick="loadpage('c...
Say you have an image that is 200px wide. Is there a way to determine how far from the left of the image you clicked? For example if you clicked in the dead center you would get 100. I tried using something like ui.position.left but couldn't get that to work. Any ideas?
...
Hi, I've got a dropdown menu on my form, which when something is selected I need to reload the current page, but with an appended querystring.
How would I go about doing this?
...
Hello,
I'm working on a small site that I would like to change a little bit so it is more dynamic.
The index .html is something like
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
...
</head>
<body>
<div id="page">
<div id="header"></div>
<div id="main">
<div i...
I want to extend the animate function of jquery to support the CSS box shadow-property which can animate the color, the x- and y-offset, the blur-radius and spread-radius.How is it possible?
...
I have the following html on a page:
<h1 class="theme-color-3">Knowledge Portal Site</h1>
This is rendered dynamically.I dont want the word Site after 'Knowledge Portal'.I dont know where the word Site is hardcoded,so i wrote the following jquery code to remove that word.
$(document).ready(function() {
$('h1.theme-color-3').html($(...
Hi, I have a dropdown menu, which I want to use $('form#form').submit(); on from a .change() event, but how would I append a query string to the submitted page?
So the resulting page would be example.com/submitted-form/?querystring=something
...
I have a table with data in:
<td> item </td><td> order code </td><td> price </td>
I'm processing the table with jQuery which needs to find the order code:
$.each($('.productList tbody tr'), function() {
var orderCode = $(this).find('td:eq(1)').html().trim();
// do stuff
});
If there are no products, the table shows a message...
I would like to assign a cookie to a variable...
e.g.
var aVariable = $.cookie("moo");
I am using the jQuery cookie functions - do I need to set the cookie AND set the variable at the same time or something?
Help pretty please!
^.^
My Code:
function goBackToPosition() {
var xPos = $.cookie("yourPositionX");
var yPos = $...
Which fragment of code bellow can not work in MSIE?
$(document).ready(function() {
var minId;
var fadeTime = '25';
$.ajax({
url: 'JsonFileWrite.php',
type: "POST",
data: "idRequest=true",
success: function(data) {
mi...
I'm using the Martin Milesich TimePicker, which is basically the jUI datepicker with hour/minute sliders attached to it.
I have a couple of queries regarding this:
1) I'm storing the data in a database field of type DATETIME - as you're probably aware the default format for this field is 2010-07-19 14:00:00. In my form field however I ...
UPDATE: works fine in Firefox, IE7 and Chrome, but not Safari. Now I'm really confused.
Only rarely do I have issues with Safari, but this is quite interesting.
It's just a cookie cutter LocalScroll call:
<script type="text/javascript">
$(document).ready(function() {
$('#politician_filter').click(
function() {
$("#all-people u...
I have a field in my form which accepts only numbers and I am validating in the below function.
In the function I want to activate the dialog only when the user enter numbers only (no letters). When characters are entered it shold show an error.
$('#submit').click(function(e){
$("#form").validationEngine({
inlineValidation...
Is there a way, using jQuery, to trigger an event on load of a CSS background image?
...