Ok, I have this list layout that I use, and I want the list row to highlight when I hover it. Now, that's not a problem really, since I can use javascript to change classes for example, but I want the cursor to change to a pointer when hovering and when clicked, I want to follow the link within.
Example code can be found here:
http://s...
I see a number of examples of removing an item from a select dropdown by the items value ( such as this question ) but is there a way to remove an item from a select dropdown if all I know is the display text?
...
First :
Is it possible to set either an option or to easily change jQuery UI core code so the datepicker will always show a fixed amount of rows(/weeks) ?
Displaying a month takes either 5 or 6 rows/weeks, and the difference in height is not something I want using an inline datepicker.
Answered: hardcode the variable numRows in ui.dat...
I wrote a little code to get some tooltips in my multiple select box,
The code is working file in FF but not in IE :(
ex:
$('#select > option').mouseover(function(){
alert($(this).text());
});
Can anyone help me?
...
Using jquery.load() to replace the content of a div everything works great, however there is a major performance issue. The page loaded into the div contains some external javascript files and using HttpWatch I have observed the following:
0 0 GET (Cache) text/javascript /js/file1.js
0 0 GET (Cache) text/javascript /js/file2.js...
I have two elements(dropdowns) which are very closely placed. These elements are required fields.
I am using jquery valiate to validate the fields. The error message are showing for both the elements and the space between the elements increases as the error message of first control is displayed near the element
$('#RegisterForm').vali...
I am looking at the possibility for an AutoCheck style jQuery HTML application that every 5 second it goes off the a DB and checks some data.
That is the easy part, which I can do.
Now what I would like is to have an AutoCheck time going, something like
var t = setTimeout("autocheck()", 5000);
So every 5 seconds it is triggered, and...
Hi folks
Trying to create a simple spinner effect with Jquery, i.e. two buttons (up & down) with a text field. The upbutton increases the value while the down button decreses the value. increment steps + or - 1.
Any suggestions as ui.spinner is most def. not working and I am new to jquery. musty be something like
$(#up).click (funct...
I want a jQuery countdown:
It starts counting after page download finishes
After counting to 0 it redirects to a url
How i can do that?
Thanks in advance
...
I call the load method. There are some occasions when the page it calls does not exist. In firebug I can see the 404 status is returned. How can I access this status in jQuery so I can handle it?
$("#section-main-wrapper").load(uri);
...
I've been building a Ruby on Rails site in recent months and I've only used a small amount of built in JavaScript functions. However I will be doing much more JavaScript development in the coming weeks and months and I am debating on which JavaScript framework to go with.
On the one hand jQuery seems to be the more popular one, but then...
Hi,
I'm trying to render a flat Json obect into a tree like <ul> using jquery.
This is what the Json object looks like
[
{"FacetTypeId":1,"ProductId":22,"FacetName":"Gender","FacetSysName":"Gender","FacetTypeName":"Mens","FacetTypeSysName":"Mens"},
{"FacetTypeId":6,"ProductId":22,"FacetName":"Size","FacetSysName":"Size","Facet...
When the contextmenu is shown,
if the user clicks out of the contextmenu,
should hide it.
How to implement this functionality?
Is it possible to listen for click_out,and when it's detected,hide contextmenu and clear that listener?
...
Ok, so this is a bit complicated. I have something like this code:
<div> Hello, I'm inside a DIV, please <a href='foo'>click here</a></div>
And I want to bind a click event to the DIV that follows the link of the contained A. No worries, this I can do all by myself, but the only method I know of is using "top.location", which bypasses...
I've often wondered about the use of selectors versus equivalent functions in jQuery. By this I mean statements that comprise the same components that return identical result sets, but are constructed differently.
Take the following example:
alert($("#FundManager1>option").length);
alert($("#FundManager1").find("option").length);
(No...
i want to loop through all dropdown selects with a certain class name and add an item to it and i am just struggling with the correct selector
EDIT: I must be doing something wrong as most of the upvoted accepted answer dont seem to work so i think there must be some quirk in my code. I have pasted both the HTML and the jquery code ...
I want to use the jquery autocomplete plugin across several input boxes. In order to keep my code DRY I want to tie the autocomplete function to a class and within the autocomplete function pass the id of the field that has called it as an extra parameter. What I am struggling with is obtaining the id of the field that has called the fun...
I have this in my html code:
<ul id="navlist"
<li id="tabItem1"><a href="#">Item one</a></li>
<li id="tabItem2"><a href="#">Item two</a></li>
<li id="tabItem3"><a href="#">Item three</a></li>
<li id="tabItem4"><a href="#">Item four</a></li>
</ul>
I want to add a class to the a element with jquery like this: (its not working)
var curr...
I love the Fly to Basket jQuery plugin, and am looking for similar plugins.
If anyone knows of any plugins or sites using some different type of effect for a shopping cart, could you share that link?
...
I have a scenario where i want user to open a popup or other page from a web form to search contacts from database and add them to list and when done return that list back to parent form field and continue filling other fields.
I have 2-3 user input which should take multiple values for each field from list of values and i wanted to imp...