To all the jQuery guru's out there I could use your help pointing out what is probably a silly error on my part. I'm trying to swap classes onclick when the user clicks on a div with the hotspot class. The code below swaps the class the first time I click but not the second and subsequent times. Also if there's a cleaner way to accomplis...
Hi,
I have a set of div's with some child elements.Inside parent div I have a hyperlink.
If I click the hyperlink, then i want to close the parent div of the currently clicked link, not other div's.
Ex:
<div class="1"><a href="#" class="closeThis">close</a></div>
<div class="2"><a href="#" class="closeThis">close</a></div>
<div class...
Hi,
I have a url and I want to retrieve the html dom generated when going to the url (all the code for the page) in a javascript variable.
How can I do this? I'm guessing an html get or post? Can anyone give an example with jQuery?
Every time I do a $.get or $.post like this:
$.get("http://www.google.ca", function(result) { alert(res...
Hello. I am using jquery scrollTo to scroll contents within a DIV that is overflown. When I click the links, the DIV will vertically scroll its contents... However, I would like this effect to occur when I HOVER over the links, instead of click them.
I don't believe this is an option with jquery's scrollTo. However, there is a jque...
i have an absolute positioned img which i make it to appear using jquery scale effect...it works fine in firefox..in all other browsers this is what happens..
the img initially appears in a wrong position... the effect happens...then it comes to the position i have applied...is it a problem of scale effect...?
Update- the code
css..
...
How can I delete a list based on the button clicked?
<ul id="list">
<li><input type ="button" name="Clear" value = "Clear1"/></li>
<li><input type ="button" name="Clear" value = "Clear2"/></li>
<li><input type ="button" name="Clear" value = "Clear3"/></li>
</ul>
e.g If I click clear2, it must remove the list it belongs.
...
What is the equivalent of jQuery's
closest() function in prototypeJS
and html() function in prototypeJS
Thank you so much.
...
Hi,
I'm new the JQuery. I am using a closed framework, that allows me to add code, but not to change some of the behavior.
In order to add functionality, I need to hook into a specific Ajax request and either redirect it to my URL (so i can change the data there and be a proxy), or change the parameters of the request at the client side...
I'm trying to use jquery to show and hide a div onclick, and, although I'm not getting any errors, it's not showing or hiding anything either.
*EDIT - UPDATED *
$(document).ready(function() {
$("#nav-inner a").click(function() {
var type = $(this).attr("class");
$("div.v1 > div").not("." + type).st...
Can I use ExtJs without License like JQuery?
Can I publish website using ExtJS without any permission from them?
...
Hi, first thanks for it, i searched for a lot of modal forms and yours seems to be the easier to use and modify
My only question is how, using your downloaded Contact form version, send a dynamique var from the page calling the modal form and the modal form in itself ?
As you go through a js file ( contact.js ) to show the modal, that ...
I'm using a jQuery UI plugin that captures mouse/keyboard clicks (ui.selectable.js) and doesn't seem to propagate it further.
Is there some trick I can use to capture keydown or mouse* events in my code even for elements where the plugin is already listening for these events and not propagating them?
...
Is it possible to access Facebox settings? For example, I'd like to do set the location of the loading image dynamically (see line 4):
<script type="text/javascript" src="<?php echo base_url(); ?>media/facebox/facebox.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
Facebox.loadingImage = '<?php echo...
Im learning asp.net mvc and have been investigating jquery and the like.
As yet I havent found a calendar that is actually any good for inputting a date of birth. It often involves masses of scrolling to find the correct year! It is often easier/quicker to just type it in.
Just wondering if anyone had found any examples of good calenda...
problem can be seen here: http://www.studioimbrue.com/beta
The code:
$(document).ready(function(){
$('div.caption').hide();
$('.captions ul li img').hover(function(){
$(this).siblings('div.caption').fadeIn('medium');
}, function(){
$(this).siblings('div.caption').fadeOut('medium');
});
});
Not sure wha...
I'm using jquery lightbox for image gallery.
Url to the button image is '../../Content/Lightbox/lightbox-btn-next.gif'
That work fine if my url is 'localhost/Something1/Somtehing2'
If I use another route like 'localhost/Something1/Something2/Something3' then url to button images is incorrect.
Can I use Url.Action() inside .js files?
T...
Hi All,
I am facing a small problem with parsing text entered in HTML format. Was successful in converting open and close tags etc, but how do i recognize "next line (entered text)" in the text area ?
Please help
<script type="text/javascript">
jQuery(function($) {
$('#submit').click(function() {
var htmlval = $('#textEntry...
In code I have a reference to a DOM element, in Jquery. How do I find out it's id? It maybe counter-intuitive, but I need to know that so I can do some manipulations on another element with a similar name.
...
I want to pass jquery command into eval() function but I have found that some situation is not work.
For example, I have
$('input[name="lastName"]').val("xxx");
Then I pass into eval function
eval("$('input[name="lastName"]').val('xxx');");
eval('$('input[name="lastName"]').val('xxx');');
Because there are too many " or ' block i...
I have various. How do I add a new list based on the button clicked in that particular ul
How to get the ul of the button saved clicked and create and add li to that ul?
<ul id ="list1"><li>item1</li><input type= "Button" id = "test1" value = "Save"></ul>
<ul id ="list2"><li>item11</li><input type= "Button" id = "test11" value = "Save"...