I wanted to do
$('.place').css('background', 'url(open.png) left top no-repeat, url(close.png) bottom right no-repeat');
However jquery doesnt like the ','. Making it two lines has the 2nd css replace the css on the first line. How do i set the css so it will have both open and close background image?
...
I just got a fix on another post I just made but this created a nother problem. I am working on a navigation menu with multiple levels. Here is the script I am using:
$(document).ready(function(){
// attach the click handler for the menu
$(".left-navigation-holder li a[href='']:has(~ul)").click(toggleMenu);
// Expand menu for the curr...
I am trying to customize jwysiwyg jquery RTE. I would like to build an image attributes editor so that once an image is inserted into the editable region, the user would select it and then a modal window or properties panel would appear allowing the user to edit the width/height etc. Analogous to gmails image insert UI.
The problem is I...
I have a form that I want to present in two states:
1) Normal form
2) Person can look at the form as filled out by a user but can't change anything
It's easy to handle text inputs with the readonly property, but radio buttons, checkboxes, and dropdown menus don't use it. I can set the "disabled" property for those, but in most browse...
I'm implementing click tracking from various pages in our corporate intranet in order to add some sorely needed crowd-sourced popular link features ("most popular links in your department in the last 24 hours", etc.)
I'm using jQuery's .live() to bind to the mousedown event for all link elements on the page, filter the event, and then f...
I use the following function to show a status message after a form submit from my asp.net page.. The function gets called but it(alertmsg div) doesn't seem to show up why?
function topBar(message) {
var $alertdiv = $('<div id = "alertmsg"/>');
$alertdiv.text(message);
alert($alertdiv);
alert($alertdiv.te...
I'm using jQuery-UI to build a site with dialogs containing form inputs (input and select specifically), yet I do not want the user to be able to accidentally highlight the text, radio buttons and elements used in the dialog as this looks ugly (and selecting is surprisingly easy to do by accident on the ipad).
I have been using the jQuer...
Posted this over at the Drupal forums but haven't received a response. Basically, I have a simple JavaScript item I developed for another website that I'm trying to port over into Drupal. It's basically a div with three tabs stacked on top of each other and an image. When the user scrolls over a tab, the image changes (depending on the t...
HI,
I am new to JQuery. I am having issues implementing the same. I want to use the tab from the JQuery custom themes. The issue is that the css don't seem to apply. I have gone through a lot of blogs etc on google but nothing seem to work for me.
I have followed what is mention here.
I am also pasting the contents of site.master and /...
Hello,
In jQuery plugins, every time we return an object of jQuery, like
$.fn.Myplugin = function() {
return this.each(function() { //do some stuff });
});
My doubt is, why do we actually return an object of jQuery and where are we going to use this returned object
Though I don't return any jQuery object in my function(plugin...
UPDATE:
The problem is more complex. Looks like it involves accordion header not passing .click events correctly, and has nothing to do with :checked selector. All of this example work fine in a test file.
Please see http://stackoverflow.com/questions/3278756/radio-input-in-header-of-accordion-problem
I have a form with several radio ...
how to set background images when jquery dialog ui is open()
how can i set background images of html page in jquery
...
I have the following stucture:
#main.accordion()
h4#header1
<table><tbody><tr><td>
<input type=radio name=1_1 value=1 id=1_1><label for='1_1'>1</label>
<input type=radio name=1_1 value=2 id=1_2><label for='1_2'>2</label>
<ul>some text</ul>
With several h4 headers of similar structure.
When I click on t...
So I'm trying to achieve something seemingly very basic in jQuery. I have a number of "headers," and when I click on a header I want the info beneath that header to slide down, and all other header info to slide up (so that only one header is showing info at a time).
Here's sudo code of what I want to happen:
$('.more-info-header:not(...
As per this plugin http://flowplayer.org/tools/demos/rangeinput/index.html
Does anybody know how to add second handle to the range? I've asked this on official site but still no answer :(
...
I need some help on this on how can I animate the following:
If box1 done fading in 2000ms then that is the time to start animate the box2 the box3 and box4
$(document).ready(function(){
$('#box1').fadeIn(2000);
$('#box2').fadeIn(2000);
$('#box3').fadeIn(2000);
$('#box4').fadeIn(2000);
});
How can i do this, or give me some l...
I created a wordpress plugin (say P1 ) in which I used fancybox (a jquery plugin). I included its js using wordpress's wp_enqueue_script() function.
But, on my client wordpress blog, he is using some other wordpress plugin, one of them (say P2) also use fancybox.
When both these P1 and P2 are active, fancybox js loads 2 time one from P...
i made this form:
<form id="form" name="msgform" method="" action="">
<input type="text" size="40" id="msg" name="message"/>
<input type="submit" id="button" name="clicker" value="click" />
</form>
and this jquery script:
$(document).ready(function(){
$("#button").click(function(){
$("#form).submit(function(){
var submision= $("#...
I have a one iframe in which one webservice has opened .A forms is in that web service.After submitting that form my iframe will close.But before closing iframe I want some waiting screen till the form data is submitted at web service and receieved some response from there(like please wait while your operaion is processed).Can any one su...
Below is my HTML set up for the tabs which all works fine, i want to extend it a bit by changing the class of the outer containing div (id=tab-wrap class=bike) to whatever tab is showing. The idea is to change the background image based on the tab.
<div id="tab-wrap" class="bike">
<div id="batter-finder">
<h1>B...