I have some text boxes, all of which have the same class "addExamNumberBoxStyle". Now I want to bind a "blur" handler to each one of these. When I use direct "blur" event like below -
$('.addExamNumberBoxStyle').blur(function()
{
alert("Hello World");
});
it works perfectly. But when I use "live" function like below -
$('.addEx...
How do I fade .addClass in and out.
Here is the link -
www.aus-media.com/dev/site_BYJ/new-students/
and here is the code -
$(document).ready(function() {
$('#menu li#Q_01,#menu li#Q_03,#menu li#Q_05,#menu li#Q_07,#menu li#Q_09,#menu li#Q_11,#menu li#Q_13').hover(function() {
$(this).addClass('pretty-hover');
}, function() {
...
Hi all,
I am implementing sliding panel element but problem is when i slide out other div element is floating down.
I guess and tried to give z-index to element which i am sliding but it doesn't seems to work.
Let me put code for both div.
<div class="vrcontrol">
<div class="slide-out-div">
<a class="handle" href="http:...
Hello, I found this on the web:
$('a[href^=http]:not("[href*=://' + document.domain + ']")').click(function() {
pageTracker._trackPageview('/outgoing/' + $(this).attr('href'));
});
But it's not working. In my Google Analytics account there are no /outgoing/ links showing (it's been 24+ hours since I implemented it).
What's wrong wit...
I see the example for repeating events in the code but I'm confused as to how it works. How would I go about adding an event (adding events as an array for now) which occur every Monday at 4:30pm? I'm trying to use the basicWeek view.
...
Hi all;
my problem cache, each keydown request no cache help me
$('[id$=Name]').autocomplete('AComplete.ashx',{
extraParams: {Type: function() { return $('[id$=Check2] option:selected').val() } }
}).flushCache();
how to make cache prevent ?
...
Hello
I have a sign up form that is displayed to all new site visitors. If a user fills out the form, the next time they visit the site, I would like to display a "welcome back" message where the form would usually sit.
I am trying to do this via the jquery cookie plugin (http://plugins.jquery.com/project/Cookie).
My form would look ...
Hi,
i'm using the JQUERY multiselectable plugin. Because it's get one select box and transform it in two, where you can move one selected option to another select box. The problem is that i'm facing some problems with the edit action. When i load the form, the selected values (that are saved in my model) are not being populated in th...
I'm thinking it's a bug, but as of 1.4.2, .live() is supposed to support custom events. Here's a quick little demo: http://jsbin.com/erofi/edit
Is it a bug, or am I doing something wrong with my triggers?
...
I have the following html:
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<span>not so important</span>
<span title="some specific text"><img src="/img/some.gif" /></span>
<span title="more specific text">important 1</span>
<span title="more specific text">...
i use such treeview http://docs.jquery.com/Plugins/Treeview/treeview, it saves perfect opened nodes when i click to subnodes links, but if i click on link, that is not in treeview the treeview is closes.
for example- in treeview i have product categories, when click on category it loads list of products, but if i click on product details...
so the problem is, i have a contenteditable div, with a keyup function binded.
everytime somebody puts a youtube url in it, it has to be replaced by an embedded movie.
i came up with a regex like this :
content.match(/http:\/\/\w{0,3}.?youtube+\.\w{2,3}\/watch\?v=.*?(?=\s)/g);
firefox wil do the replace after a whitespace, but in i...
HI,
i am using the following code to show a link which is inside the li element. the constrain is, once the mouse enter into li element, and if it's stay inside 3sec, then it need to show. once i leave from li element, immateriality it should hide. for this, i am using :
var showTimeOut;
var thisElement
$('.user-list li').live('mouseo...
I'm using jqGrid as a client side grid input, allowing the user to input multiple records before POSTing all the data back at once.
I'm having a problem where if the user has added a few records (say 3 ) the id's for the records will be 1,2,3. if the user deletes record 2, you're left with 1 and 3 for the id of the records.
When the us...
Im looking for a way, in javascript, to calculate the size of the browser (px) then calculate the size of a <div> taking away 50px from that full screen size:
E.g.
Browser screen size: 800px (Height)
Existing <div> that is always 50px (Height)
Leaves 750px (Height) for the remaining <div> to fill the page.
Then take that 750px and ap...
will we have to replace every $ with jquery?
$(document).ready(function() {
$('.tabs a').click(function(){
switch_tabs($(this));
});
switch_tabs($('.defaulttab'));
});
function switch_tabs(obj)
{
$('.tab-content').hide();
$('.tabs a').removeClass("selected");
var id = obj.attr("rel");
$('#'+id).s...
I have a <div> which I want to display full screen, but I also need to incorporate a 60px high <div> and a 10px high <div> at the top of the document. The size of the main div will need to re-size as the browser window is re-sized to keep it full screen.
<div id="div1" style="height: 60px">
</div>
<div id="div2" style="height: 10px">...
I am dealing with textarea, and on click of this I am calling one replace function which will remove some specified string in textarea, this is the basic operation.
Expected behavior after clicking on textarea
1) At first click :
It should remove specified string from textarea
Cursor should come at end of string
2) more than one cl...
I tried to have a .click() on a <a> to find out it wont trigger every time I click, what it suppose to do is open a dialog.
That is not the only problem I would need to pass a value to my jquery to. I just cant figure this one out.
I need it to be a <a> because it's gone be in a dropdown menu. Do you got any suggestions?
EDIT
this is...
To clearify, I've tried solutions with updatepanel/scriptmanager but I do NOT want to use them.
I want to make this jquery-ajax posts and nothing else.
Lets assume this scenario.
We have a global event as follows:
public static class CustomGlobalEvents
{
public delegate void SpecialEventRaisedEventHandler(object sender, string type...