Hello, I am having a problem with jquery going a bit too far on pattern matching of CSS classes and IDs.
I have some markup that looks like this:
<div id="blah">
<div class="level2">
<input type="text" />
</div>
<div class="levelA">
<div class="level2">
<input type="text" value="foo"/>
</div>
...
I'm trying to run this jQuery selector:
$("#label option[value=\"newLabel\"]")
On the following code:
<select name="label" id="label">
<option value="1" label="testLabel">testLabel</option>
<option value="newLabel" label="New Label">New Label</option>
</select>
But the selector just won't find it - can anyone spot where ...
Is it possible to open the next panel in a jquery accordion menu through a seperate button onclick event? That is instead of clicking the heading to open another panel, use a button not connected to the accordion.
...
Hi,
I am looking for a jquery modal window script for displaying images, text, html, videos, etc.
There are a lot of great ones out there, but I am looking for one that allows for a long description (that isn't pulled from the title) - like highslide that lets you have a caption and will display the photo text to the right or left of y...
So I am appending the following after an AJAX call, and this AJAX call may happen several time, returning several data items. And I am trying to use Tinysort [http://plugins.jquery.com/project/TinySort] to sort the list everytime, so the new items added are integrated nicely and sorted alphabetically.
It unfortunately doesn't seem to be...
The reason I want this is so that when the overlay shows a WHITE Background, I can add "webkit-transition-duration" property to allow the white background to nicely fade-in and out using the GPU.
But problem here is that JQUERY seems to remove/add the overlay div every time the dialog is run.
Any ideas?
...
Hi,
I've been stuck with this problem where there are 3 steps in an asp wizard control. The first step has a radiobutton (yes and no) and based on the radio button input chosen by the user, i would need to hide or show a label in the second wizardstep.
Example:
Step 1: Choose 1 among the two options: Yes No (radStep1)
Step 2: if the...
Is that possible to pass variable into regular expression pattern string in jquery ( or javascript)? For example, I want to validate a zip code input field every time while user type in a character by passing variable i to the regular expression pattern. How to do it right?
$('#zip').keyup( function(){
var i=$('#zip').val().length
...
While having one of my questions answered, cletus mentioned that when creating elements in jQuery it's better to use direct DOM element creation, instead of innerHTML. I tried googling it but I wasn't able to find a good article with comparisons.
I've provided this code bellow as an example and I was wondering if someone could help me ...
Hi
I am new to jQuery, and this is the page I'm currently developing.
http://90.230.237.71/gandhi.html (Hope that works now :P)
I'm testing your tips on page gandhi2.html
When I hit "Show/hide gallery" all the images are first opened vertically, and later they are corrected to their horizontal placement, that's the problem. They shou...
HI all,
I want to add a sound to my link please tell me is there any jquery or javascript to add sound
i have used following but its not working..
<div align="center"><a href="our_product.html" class="footermenu" onmouseover="MM_controlSound('play','document.CS1276334226609','drop/downloadb12bb644.mp3')">Our Product I</a></div>
Thank...
I want to know is it possible to insert additional text in HTML elements using jquery or javascript?
If there is already a text "Down" in paragraph elements, then I just want to append text "full", so that it would be "Down full". Is this possible? Which method should I use?
...
Hi Guys,
I have a jquery overlay window in my html alongwith a button to activate here is the code.
<!-- Validation Overlay Box -->
<div class="modal" id="yesno" style="top: 100px; left: 320px; position: relative; display: none; z-index: 0; margin-top: 100px;">
<h2> Authentication Failed</h2>
<p style="fon...
I am using jquery to find a first element having a class "error" applied to it using the below code
$('#mainDiv input.error:eq(0)')
But the above one working only for input elements only.
How to make this one to work for both input and select elements?
...
why is the code below showing 'got the result null' alertbox ? while the request seems to be sending a proper json.
$(function(){
$.getJSON('http://api.twitter.com/1/statuses/user_timeline.json?screen_name=twitterusername', function(data) {
alert('got the result '+data);
});
});
...
Hi
To resolve a jQuery slideDown/Up problem, I had to change one line in the jQuery file.
I changed line 5738 from
this.elem.style.display = "block";
to
this.elem.style.display = "inline-block";
The block attribute messed up my lists when using slideDown/Up/Toggle. slideDown changes my list from display:inline to display:block during ...
$(function(){
$.ajax({
url:'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=user_name&callback=?',
//dataType:'json',
success:function(data){$('body').append('the data is' +data);}
});
});
the above code with dataType line prints ou...
hi, i have mouseover issues sometimes when i move my mouse fast over links it loops for quite a while, is there a way to only loop if mouse is stil over and stop if the mouse is not.
$('ul.display li').hover(function() {
$('ul.display li').find('#details').hide(); // hides all deatils div before showing
$('#ligh...
i have the following code as i want to search a database as a user is typing into a textbox. This code below works fine but it seems a little inefficient as if a user is typing really fast, i am potentially doing many more searches than necessary. So if a user is typing in "sailing"
i am searching on "sail", "saili", "sailin", and "sai...
I have a list of items that have some jQueryUI buttons associated with them. After an action (deleting an item) I want to reload the list via ajax.
Only problem is when I do so the JQueryUI buttons no longer show, just the standard markup.
I know I can use jQuery.live() for dynamically adding click handlers etc, but how do I apply a jQ...