I've problem with opacity for IE8 and Opera9-10. My little JS adds a CSS class to a row (<tr>) when users click on it. This is the class:
.selected {
opacity: 0.5;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; /* IE8 */
filter: alpha(opacity=80); /* IE7 */
}
Opacity is applied in Firefox and Google Chr...
Hi,
I have a web page that contains two lists (Unorders lists), I have to move items from list 1 to list 2 but to filter out items that are already in list 2.
I'm using JQuery as js library. I know I can select all items to be moved to list 2, loop one by one and check if alredy exists in list 2, but was wandering if there is a way to do...
Hi all,
This problem surprises me because it does not work in Chrome as well. Chrome!!
Anyways, I have 3 select boxes, A, B, C. On a page load, B and C are hidden. (This is fine in all browsers). Currently, I have an event handler attached to specific values in box A, so that if a value is clicked, B shows itself populated with res...
Hi,
I want to allow user to select range of items in my unordered list by allowing him to press cntrl key and then select first & last item, all items in between would be selected.
I'm using JQuery, Any suggestion how to approach this problem?
Here is html:
<ul id="ulList_1">
<li>
<a href="#">item 1</a>
</li>
<l...
hi ,
i want to grab text inside a div element like this :
<div class='someclass'>
<blockquote>some text ! </blockquote>
another text goes here .
</div>
so i get all text with jQuery like this:
var qtext = $('.someclass').text();
but i don't want <blockquote>some text ! </blockquote> i just need the text inside div element . how...
Most date pickers allow you to pick the date from a tine calendar or enter the date by hand.
For example http://jqueryui.com/demos/datepicker/
This requires
- two clicks (one to display the calendar and one to select the correct date)
- good eyesight (usually the pop-up calendar is very small)
- and good hand-eye coordination to pick t...
Hi,
every jQuery plugin I've found is based on <li> elements to generate the menu items.
I have <div id = "menubutton"> element that represents the menu button and another, not-related (maning it is not a child) <div id = "menucontent"> that contains the menu items (mixed stuff, images etc). I want this second, hidden div to appear when...
Hi everyone, I have an array with objects, I want to save each one of them via GET, and update certain params in the callback, bot
the html:
<html><body><div id='test'><div id="a">a</div><div id="b">b</div></div></body></html>
the js:
$.map($("#test > div"), save)
save = function(o,i){
itt = $(o)
tmp = {'desc':itt.html()};
$.ge...
I want to use frameready plugin to pass data to an iframe. The example on the site is as below.
$.frameReady(function(){ $("<div>I am a div element. "+frData.myVariable+" </div>").prependTo("body");}
, "top.mainFrame"
, { data:{myVariable: "I am data passed to this frame"}
, load:
{type:"script", id:"_fr", src:"/js/myscript.js", ...
Hello,
why is the height value of the test div the same before and after the hide animation?
$(document).ready(function() {
$("#test").hide("slow", function() {
alert($("#test").height());
});
});
<div id="test">
test
<br />
test
<br />
test
</div>
...
Using the demo for JQuery Validation at:
http://jquery.bassistance.de/validate/demo/milk/
The username field does a lookup to a php file to see if the username is available or taken. In the demo both George and Peter are taken.
When you type in George, you get the error message:
"George is already in use"
....now if you go back and...
I'm trying to execute an external function on click of a DOM element without wrapping it in another function.
Say I have a function called sayHello(), as follows:
function sayHello(){
alert("hello");
};
To execute it on click, I currently have to do this:
$("#myelement").click(function(){
sayHello();
});
Notice I am forced to ...
How can I get form inputs real time and use them to change the background color of elements?
I have an input field that will accept six digit hex values:
<input name="acct-bcolor" id="acct-bcolor" class="color" value="141414">
Thanks in advance.
-B
...
Hi,
i am receiving a piece of plain html from an ajax request.
<h1>Title</h1>
<div>
content
</div>
This is the most simple form. Every piece contains a <h1> tag for a title, and a <div> tag containing the content. I have a nicely formatted container in the html page which needs to populate with the returned html snippet.
This is t...
Hey, I need an advice, if it's worth it to downlaod a jQuery plugin (such as Impromptu), or if it's easier to make my own code just to modify the "prompt" efect. All I need is something like the first example of THIS.
Or is there any other way, how to show a box of text in the midle of the screen, that stays there even when I move scrol...
Hello, I'm trying to use Ajax with JQuery, what I want to do is just send multiline textbox value to php with Ajax.
I'm using that code, it sends txtAnswer value to php, unfortunately, it removes new lines (\n) from data. How can I solve this problem... Thanks in advance..
$.post(
'post-answer.php',
{answer: $("#txtAnswer").val(),...
Hi all,
I am trying to clean up the javascript of a site. I am finding the header of my site is looking like this and growing:
<script type="text/javascript" src="jquery.base.js"></script>
<script type="text/javascript" src="jquery.plugin1.js"></script>
<script type="text/javascript" src="jquery.plugin2.js"></script>
<script type="tex...
Ok so here's the deal,
I'm trying to display a tooltip (instead of the ginfowindow) over some Yelp Map Markers that I am pulling onto a Google Map.
I would like to have the exact same effects as Yelp. i.e. The tooltip seems to be set such that it's z-index is always above all other elements nearby, it moves the tooltip once it appears...
Hey guys,
I am trying to make an accordion with JQuery and am running into some trouble. The JQuery website shows to create your accordion content like this.
<div id="accordion">
<a href="#">First header</a>
<div>First content</div>
<a href="#">Second header</a>
<div>Second content</div>
</div>
When I do this the acco...
Hi,
if i have the following:
<input type="text" id="something_txtYear" />
How do select this in JQuery using just the "txtYear" part??
Malcolm
...