I am using jquery ui tabs.
It has a couple of events like add, show, etc. I'd like an event that is triggered before the tab is added to the html, because I need to set width of the tab before it is added (for dynamic width purposes that I cant seem to do with CSS).
Any idea how I can make a pre-show event that is triggered before the ...
HTML:
<ul class="parent">
<li><a href="#">toggler</a>
<ul class="child">
...
</ul>
</li>
</ul>
I'd like to toggle 'child' UL (if it exists) via 'toggler' link. There might me multiple parent>child elements so I'd like to toggle the relevant child only.
Thanks in advance for your help.
...
I thought it would be easy to create my own custom content slider with jQuery, and managed to create a decent one. Within the slider wrapper, I have a slider content and slider list. The slider is only showing one of three content areas.
This is the HTML for the slider:
<div id="featured_wrapper">
<ul id="featured_content">
...
<a href="http://www.google.com">link</a>
How do I replace link location from google.com to say "#"? $('a').attr( 'href', '#' ); isn't working.
...
I have this simple select:
<select name="zlecenia_index_icpp" id="items_per_page">
<option value="10">10</option>
<option value="25" selected="selected">25</option>
<option value="50">50</option>
</select>
and on it there's:
$('#items_per_page').change(function(){
var controller_action = this.name.replace(/_...
<a href="#">Hide Me</a>
How do I find a link with text "hide" in it. I know how to find links by attributes but can't figure out how to find link by its text.
...
Hello,
My Html is like this:
<input class="gbTransform" type="text" name="maxdl" value=""/>
And javascript like this:
$('.gbTransform').change(function(){
var sz = $(this).val().match(/(\d+)gb/i);
if(sz.length > 1){
$(this).val(parseInt(sz[1])*1024);
}
});
What this does is when a user types 1...
How to create those message box in php, just like the one in facebook.
Or any reference that you could give me that deals with designing.
...
Hi all
Nee help again with some Jquery stuff which is driving me nuts! I really hope someone can help with this.
Herewith the problem
I have 1 jquery function which runs on document.ready which gets data through a Ajax Method. I then want to use jcarousel to display the images on the page. Herewith my Script so far. Where am I going w...
It surprised me that Sizzle (the selector engine jQuery uses) comes with a built-in :nth-child() selector, but lacks an :nth-of-type() selector.
To illustrate the difference between :nth-child() and :nth-of-type() and to illustrate the problem, consider the following HTML document:
<!doctype html>
<html>
<head>
<meta charset="utf-8"...
I have the following scenario
First I get the total rows in my html table with JQuery as follows
var rowCount = $('#update_menu_items tr').length;
and then I get a result back.
Now I want to loop threw values with a for loop that should not exceed the rowcount, but I do not get a result back, since loop does not work. Not sure if I ...
I'm converting a bunch of hyperlinks to make simple GET requests using jQuery. I want to maintain the reference to this within the Ajax call, do i need to be using bind/live/something else?
$(document).ready(function(){
$(".mylink").click(function(){
var url = $(this).attr('href');
$.get(url,function(data){
...
I have a (visibility:hidden) div with a Drop Down menu and a jQuery datepicker on it.
This div is a popup that is displayed when the user clicks on an input field.
When the user clicks anywhere else on the page, the popup needs to dissappear.
The code to hide the popup is like so:
jQuery('.datepicker-popup').live("focusout", function(...
Which way is better? To link to the jQuery Pack at http://ajax.googleapis.com. Or to download the appropriate file and link locally? Does it matter? Is there a chance the link may disappear? Or is there a chance the file online will be updated, and it's better to link to it? Curious.
Thanks,
Tracy
...
Does anyone know of a JQuery solution for treeview with tristate checkboxes? I'm looking at using YUI, but have more experience in JQuery.
...
I am trying to display a page that uses jQuery. The AJAX functionality implemented in the page does not work.
I am using FF for debugging. When I look in the console panel, I see the following error: 'jQuery is not defined'. Ah, that's an easy one I think - maybe the jQuery file has not been included correctly, or not found etc. So I t...
Hey Peeps,
Trying my hand with jQuery. I have this strange situation that i wish to understand. The below script "works", only problem is not exactly the way i want it to.
Currently on page load. If i click on one of the input fields and without entering anything, tab to the next field (i.e press the tab key and go to next field), the ...
Can anyone tell me whats wrong with this function? Everything works as it should right up until i try to change the title attribute, last line. It does not change and has the original value. Im using the title attr as a notification on mouse over
P.S. Javascript/jQuery is not my strong point im a C# developer so please be nice.
functio...
I have the following jQuery code that uses the scrollTo and localScroll plugins from Ariel Flesler :
$(document).ready(function(){
$('#navigation').localScroll({
target: '#scrollpane',
queue: true,
duration: 1500
});
});
I have the following CSS:
#scrollpane {
height: 400px;
width: 950px;
overflow: ...
Hello Gurus,
Im looking for function that will allow me to replace all dollar symbols within a div to "CHF" (another currency). The reason is that the currency symbol is hardcoded and it should be replaced.
Is there a simple way of doing this?
Many thanks in advance.
...