Hi,
I have the following ul setup:
<div id="sidebar">
<ul id="themenu" class="sf-menu sf-vertical">
<li>
<a class="sf-with-ul topm" href="#">Musical Instruments</a>
<ul class="bullet">
<li><a href="#">Guitars</a></li>
<li><a href="#">Dr...
I have a page that has multiple select lists and when ever one of the select list changes using jQuery's .change() function I change the text in a span next to the select list. When the page loads there is already some text in every span (the text different for each span). The problem is that when the page loads the .change() function lo...
Hi all,
am using jquery to bind an event to a text input.
The event simply performs an ajax call.
Problem is my code works fine in Firefox, but the event is never triggered in IE6.
Heres my code:
</script type="text/javascript" src="/js/jquery/jquery.js"></script>
<script type="text/javascript">
// Turn off caching for Aja...
$(window).scroll(function() {
$('#myElement').css('top', $(this).scrollTop() + "px");
});
works great, but what if I want it fixed to the bottom instead of top?
Many thanks
...
It's been on HN some time ago, but hours of searching HN and googling later I still haven't found it. It's kinda like NiceEdit Inline mode..
...
I have a set of links and their corresponding divs showing information when clicked.
What I want to do is using jQuery, when a link is clicked, the div of only that particular link should be shown, and the rest should hide. Right now, it displays all the div containers regardless of which link is clicked unless I click on the same link...
Hi,
I have the following line in my document.ready() section, i.e.
$(document).ready(function()
{
// initialize scrollable
$("#browsable").scrollable();
});
This all works fine at initial page start-up, which is my "Home" menu option. The problem is, I have a side menu where the user clicks on an option, which then loads my h...
Good Day.
I'm looking for switch replacement in jQuery. Basically, I have no idea how to replace switch.
I got following switch, for about 70 countries. Is there any way to replace it with a loop?
$("#country").change(function () {
switch ($('#country :selected').val()) {
case 'pl':
$("fieldset#state").hide().load('pl.txt').fa...
First of all, i use eclipse to edit my html files that's not weird at all. There are plugins for eclipse which supports html and jquery code completion. But eclipse takes too much memory of my system, and i want to get rid of eclipse for html editing.
Now is there any free editor which supports html and jQuery code completion.
No aptana ...
How does jquery-ui knows to bind callbacks passed as init options? I'm thinking the answer is somewhere in the $.widget.bridge method (ln 71) but I'm not entirely sure what's going on there.
An example of what I'm talking about is something like the autocomplete search event. The code example shows that I can bind to 'search' with init ...
I'm not a front-end developer and I'm trying to create a select box and add its options totally dynamically using Jacascript and jQuery.
I'm almost there but am having a problem adding each new select to the div block (the number of selects is different at different times.
So far, I can either get the last select created in the followi...
$.post('scripts/spedisci_mail_controllo.php', function(mail_spedita){
/*this prints void alert*/
alert(mail_spedita);
/*this prints void alert*/
if (mail_spedita=="1"){
$('#message').load('pagine/message_mail_controllo_spedita.html', function(){
mostra_messaggi();
});
}
else {
...
Hi,
I'm in the process of migrating my HTML website into a WordPress Theme and have the following question:
My current HTML website makes full use of jQuery's .load() function, by where I change the content of the page (via a DIV), using .load() based on my side menu options selected by the user.
With this, can I still keep this proce...
Hi
I'm trying to use jquery to create a tab effect for several div contents. at the moment, theres a list of items that when you click on, it triggers the div with the matching ID as the hyperlink. But I want to be able to have an additional feature where within the content DIV, theres a link that you click on and it will show the next ...
Im trying to cause a canvas element to be added to the DOM and then removed after a set time. The killbox() function gets called, but the element is not removed. I believe I have the syntax right, and that there is some underlying issue with removing dynamically added DOM elements.
//con is short for console.log()
function spawnCanvas(...
Is there a working jQuery plugin (or a javascript 'library') for formatting datetimes? I found some, but they were:
not working with hours and minutes (the one from datapicker)
not fully functional - can't give you names of months, leading zeroes, etc.
are just a piece of code written in some blog.
Of course I can implement it, but i...
At the moment i have this piece of javascript code:
//Display custom confirm box and delete multiple message
$(document).ready( function()
{
$(".delete_button-multiple").click( function()
{
//Get message id as variable
var id = $(this).attr("id");
var dataString = 'id='+ id ;
var parent = $(this).parent();
//Display custom Confi...
Hello I'm looking for a way to add anchor-based URL navigation to jQuery masonry..
Here's the example:
http://desandro.com/demo/masonry/filtering.html
I'm trying to be able to direct people straight to a filterable class (ie: ../filtering.html#red)
Seems like there should be an easy solution but I'm a Javanoob so I would really apprec...
I am using the jQuery $(document).ready() event on page. All is fine, except that
if I am loading data using Ajax calls, the $(document).ready() event does not fire. I guess that it behave in such way because the page was already loaded and I am just adding more data from the Ajax response to the DOM.
How can i refire the ready event ?...
I'm not using any jQuery plugin to validate the form, just plain jQuery. My issue is that after it validates all the input elements, even if it shows the error message to the user, it will still submit the form without the user correcting the error.
To elaborate, my form has 3 input elements. with jQuery validation, if all the 3 elemen...