I have a carousel implemented with jQuery.
Sometimes I have other things on the page that might take some time to load and what happens is the carousel starts displaying without its CSS rendering OK. This gives a row of all the images in the carousel just displaying on the page.
Give it ~0.2 sec and all is well i.e. the CSS kicks in an...
This is my original CSS for my #frame div.
....#frame{
position:relative;
top:35px;
}
Then, I use JQuery to change the CSS of my div...
$('#frame').css("position","absolute");
$('#frame').css("left",50);
Now, how do I clear all those changes, and revert back to normal?
...
I'd like to determine the # of pixels between my DIV and my monitor.
Is it something like scrollLeft()? ..but I don't think so.
Please help, thanks!
...
Any other way of writing this?
$("#list option:eq(24), #list option:eq(10),
#list option:eq(26)")
.attr("selected", "selected");
...
I have a Select Box with multiple="multiple"
I want to list the text and not values of all selected items
How can i do it?
...
<div id="dad">
<img id="mum">
<input>
</div>
With jQuery, how could i get access to the input element, get is value or set it for example? I can't work out how to access something on the same level.. and i dont want to be using ID's, just parent/child nodes so i can use the code for loads of dad div's
Thanks!
...
I have a <div> with two floated elements inside of it. I'm using jQuery to attach a click event handler to this <div>. The handler only gets called when I click one of the two floated elements. The empty space inside of the <div> does not work.
Here's what the markup looks like:
<div class="wrapper">
<h4>Some lovely header text here<...
How do i add one to the value of a text field? For example, quantity?
This is how i get the object from the DOM - what do i do from here?
$(this).parent("div").children("input").val();
This is the value of my text field :)
...
i am playing with this library, Galleria, which is pretty neat. here is the url below:
http://devkick.com/lab/galleria/
but i can't see anyway to move from one thumbnail to another with the keyboard (right, left, etc) . . has anyone used this library and got this working?
...
Hi,
I have two div's. I want to show one and hide the other based on a condition. My problem is that jquery is only assigning the first div, I can tell this by looking at the web developer output to confirm, why?
if(!fd.getActiveXInstalled()) {
$(".divActiveXdownloadButton").hide();
$(".divActiveXNodownloadButton").show(); ...
Hi,
I have searched through a lot of the similar questions on here, and tried many things but I am still stuck. Not that I am relatively new to jquerry.
What I want to do is use jquery ui tabs (with jquerry address - for back button and bookmarking). I have this working no problem.
Inside each tab, I am trying to use an jquerry ui aja...
My input elements are followed by a div. I would like to set the width of that div to be that of the preceding input element.
<input type="text" class="input" size="100" name="data"/>
<div class="inputHelp"> enter data above </div>
<input type="text" class="input" size="80" name="moredata"/>
<div class="inputHelp"> enter more data abov...
Several related questions already exist on this site and elsewhere, but none of the answers seems to apply to my situation. I have a bunch of radio buttons in HTML.
<input type="radio" name="b1" value="aa"> aa<br>
<input type="radio" name="b1" value="ab"> ab<br>
<input type="radio" name="b1" value="ac"> ac<br>
<input type="radio" name=...
hey I have been trying for hours and I don't understand why the following does not work with IE but other works.
The problem that I'm having is the the background of the parent link, which is a span with an id assigned, does not animate the background image set via CSS. I get an error that says 'Undefined' is null or is not an object
...
Currently, I have this line:
$.post("submitmail.php", $("#contactform").serialize(), recvMailStatus);
I'm new to jQuery so this may be an absurdly stupid question.
But I'm making this project work with or without javascript, so if a form is submitted with this function, I want submitmail.php to just echo whether or not it was successf...
I'm playing around with using some javascript to add extra functionality to a back button on my website. Right now I have a set of javascript that looks like this:
$(".back-link a").live("click", function(){
history.go(-1);
return false;
});
Now, it works great but I'm trying to make it as bulletproof as possible and one issue...
i have a partial which contains a jsTree (jsTree.com). which i've setup to async loading of json data.
my controller returns json data in a format accepted by jsTree.
this all works perfectly, i can collapse node's and the subnodes are loaded asynchronally like it should.
but when i make a change to my database (simple change of a nam...
Is there a way to check if an event exists in jQuery? I'm working on a plugin that uses namespaced events on made up events, and would like to be able to check if the event is binded to an element or not.
...
Sometimes in my jQuery scripts they don't work unless I nest the events. For example...
$(selector).click(function(){
//do something such as create an element
$(selector).click(function(){
//do something with the created element
});
});
Is this ok? I've always tried to avoid it as it doesn't seem the proper way of doi...
How can I select texts that are not surrounded by HTML tags, but simply preceding and following <br> tags ?
I did it with xpath:
.xpath('//br/following-sibling::text()|//br/preceding-sibling::text()')
...