How can i make jquery tabs, with exactly the same tabs
on top AND bottom of the content?
So these 2 tabs combined, and MIRRORing eachother:
http://jqueryui.com/demos/tabs/default.html
http://jqueryui.com/demos/tabs/bottom.html
...
<ul id="thumb">
<li class="active"><a href="#"><img src="img/thumb1.png" alt="" /></a></li>
<li><a href="#"><img src="img/thumb2.png" alt="" /></a></li>
<li><a href="#"><img src="img/thumb3.png" alt="" /></a></li>
<li><a href="#"><img src="img/thumb4.png" alt="" /></a></li>
</ul>
<div id="video-display">
<div class="...
Hi everybody,
I have an interesting situation, I need to trigger a live click , because simple click doesn't work .
this is what I have:
$('.text').trigger('click');
but i need something like this :
$('.text').trigger(live('click' ...));
or something to fix this problem
this is my code :
$(".Sets a.largeImage").fancybox({
...
I've been using the Datepicker plugin from jQuery UI. I want to be able to validate if the input textbox it is attached to currently has a valid date or not.
For example:
If someone decides to type in 02/30/2010 I'd like to be able to somehow ask the plugin if that current input value is a valid date (which it is not in this case).
Do...
Hey all. Basically I have a page full of text input fields with default values in them.
When a user focuses on the input, I want the value to be set to nothing, but then if the user focusses out (on blur) and the input is still empty, I want to change its value back to what it was originally.
At the moment I have this, but it isn't wor...
Hi. I'm using jQuery and I have a strange thing that I don't understand. I have some code:
for (i = 1; i <= some_number; i++) {
$("#some_button" + i).click(function() {
alert(i);
});
}
"#some_button" as the name says - they are some buttons. When clicked they should pop-up a box with it's number, correct? But they don'...
I need to render view template by jQuery. I have template 'category.html.erb' and file 'category.js.erb' with following code:
$("#block").html("<%= escape_javascript(render :template => 'category') %>");
but it doesn't render category view template.
Please help me!
...
Hi all.
I have the same problem of this thread: http://stackoverflow.com/questions/2480320/question-about-simplemodal-jquery-plugin-possible-to-re-center-after-initial-o
I tried the possible solution, but no success. My page have a scrollbar and after I open the modal, I have some action that resize the div. But when the div exceed th...
Hey all. I'm using this code to try and select all of the text in the field when a user focuses on the field. What happens is, it selects all for a second, then its unselected and the typing cursor is left where I clicked...
$("input[type=text]").focus(function() {
$(this).select();
});
I want it all to remain selected. Any ideas?
...
On the homepage of this site - http://bit.ly/a3IoV5 - I have a large image fading JQuery gallery.
Here's the JQuery:
$('.fadein img').addClass('js');
$(function() {
$('.fadein').children().eq(0).appendTo('.fadein').show();
setInterval(function() {
$('.fadein :first-child').hide().appendTo('.fadein').fadeIn(2000);
}...
I am using toggle() for 'slideshow pack information of travelle' check code here:
HTML:
www2.mappaturismo.com.br
JAVASCRIPT:
function rota() {
$(".col-a div.row-a-dois:last").toggle(
function(){ $(this).fadeIn("slow") }, function(){ $(this).fadeOut("slow") }
);
$(".col-a div.row-a-tres:last").toggle(
function(){ $(this)...
I have made a jQuery plugin.
But it doesn't work properly. Sometimes it does work, but sometimes not.
I think it's some of the variables that doesn't load fast enough...
Here's the source: http://pastebin.com/h4tfCWNM
Hope someone can help
Thanks in advance
EDIT
The plugin is used for my image uploader, when i upload an image it sh...
I'm using jquery autocomplete and want it to focus a specific control once an item is selected from the autocomplete list. I tried $('#nextelement').focus(), and it receives focus, but the focus goes back to the autocomplete control immediately. How can I retain focus to the next control when autocomplete closes?
[edit] I'm using autoco...
Hello,
I'm trying to format my list of items, where the html goes like this:
<ul class='product_list'>
<li>Item 1
<ul>
<li>Item 1.1</li>
<li>Item 1.2
<ul>
<li>Item 1.2.1</li>
<li>Item 1.2.2
<ul>
<li>Item 1.2.2.1</li>
...
Anybody know of a Rtf text editor that will display "MSFTEdit" formated text in a browser.
(microsoft Msftedit 5.41.15.1515)
I have tried various editors but they all show the formating character strings.
...
Is there a way to make sure the event handler you attach is the last in the chain of event handlers to be executed?
I have an event handler that submits a form by ajax, but at a later time, after I attach my ajax submitting handler, another handler is attached to the form to do validation logic. The validation logic should occur before...
For the most part, jqGrid works great under "Safari Mobile" on the iPad and iPod Touch. However, I noticed that on these devices a jqGrid will not display a scrollbar if there are more items in the grid than can be displayed on the page.
You can scroll with two fingers to flip through the content, however since the scrollbar is not dis...
Hello,
I came across great sites which had a cool feature, which I'll try to explain here.
I tried to study the .js sources, but as I'm a newbie I couldn't decipher the minified versions. :(
Let's say I have the following markup:
<ul id="posts">
<li id="photo"> Lorem ipsum </li>
<ii id="quote"> Lorem ipsum dolor </li>
</ul>
<div ...
Hi. I need to replace all the HTML5 video tags on the page with their poster image that has a click event attached; the click event launches a Fancybox containing that video tag. Anyone know how to do this with jQuery? Thank you.
...
Say I have html similar to the following
<ul>
<li> hi </li>
<li> hoi </li>
<li> privyet </li>
<li class="selected"> bonjour </li>
<li> hallo </li>
</ul>
and I use jQuery to get all the li elements in the ul
$("ul li")
how can I get the index of the li element with the class selected within the jQuery array of li elements?...