Hi,
This will be probable quite odd question. But i thought I will give it a go.
Is there a way to remove everything from body apart of one tag that has particular class?
in my case it is an a tag with href.
I need to "fish out" the a tag and then display on DOM just the href tag in lets say p tag.
<body>
<a class="avatar_user_na...
I need to put a one second delay in this jQuery function so that when the captcha is filled in correctly, there is a sufficient delay (one second, I think) for the #captchaStatus to show before the next step of the process (which is a html being posted).
Must be fairly easy, though I'm learning jQuery.... Ideas? Thanks.
function valid...
If you look at the code inside the #top_cat and #high_hat sections below, it's obvious that it does the same thing.
$(document).ready(function ()
{
$('#top_cat').submit(function ()
{
$.post($(this).attr('action'), $(this).serialize(), null, "script");
return false;
});
$("#tip_click").click(function()
...
I am trying to reset the actual value attribute of an input so that it can be reset back to that value if reset, not necessarily the original value when the form was loaded. The problem is these changes don't seem to take effect. I have tried both:
$(this).attr('value', $(this).val());
as well as....
$(this).val($(this).val());
Neit...
i have turned on jqury-update module for drupal 6,
but jquery was not not loaded, i have checked page source,
not jquery here.
are there any steps i need to do to load jquery?
i have copy all jqury files to misc folder.
it just not loaded by front page
...
The code from official website seems only binds click event to links at first load. When a new page is loaded, all links seem to be unbinded so any further clicks will leave the page.
$('#example').tabs({
load: function(event, ui) {
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
retu...
I am using the jQuery UI Slectable http://jqueryui.com/demos/selectable/
Once initialized (just like in the demo on that link). drag-selecting only works if I start holding the mouse button on top of a object. If I start drag-selecting from outside of the objects, the selecting does not work.
Is there any way to enable it so the user ...
Content of TAB1 is loaded by ajax from remote url. When TAB1 is selected, I have to switch to TAB2 and then back to TAB1 to refresh the loaded content.
How to make TAB1 refresh loaded content when click on its tab?
Edit: HTML code is as below
<div id="tabs">
<ul>
<li><a href="url1">Tab1</a></li>
<li><a href="url2">...
When I submit #top_cat, the firebug console says "ok" because of the debug text I'm printing here:
function submitHandler() {
console.log("ok");
$.post($(this).attr('action'), $(this).serialize(), null, "script");
return false;
}
But if I click on #tip_click, I see "start" and "end" in the output but it never says "ok" - m...
Hello evryone.
I have a litle problem with my Javascript functions.
It might be a litle deep into my code as well but im prety sure someone on Stackoverflow know the awnser!
Ok first i have a PHP session that i use to save my image id's
Then i have a page that shows 5 images at a time with a JQuery Click fonction to browse my images
...
Hi
is there a way to handle or debug the scripts that cause browser crash?
my page which has almost 8 jquery plugins causes browser crash in macosx snow leopard, and just in chrome and safari. i realized when i use ajaxupload plugin it happens. but how can i debug it ?
there is no problem in windows.
Thanks
...
Is there a list of which filters can be used in selectors for the live method?
I had a case where I needed to bind an event to all the tr's in a table body excluding the first.
Broken Live Example:
$('#ExampleTable tbody tr:not(:first)').live("dblclick", RowEvent);
This would select the correct rows but the live event would bleed ov...
"return false" seems to work in the submitHandler but I'm not sure why.
function submitHandler() {
$.post($(this).attr('action'), $(this).serialize(), null, "script");
return false;
}
$(document).ready(function () {
$('#top_cat').submit(submitHandler);
$("#tip_click").click(function() {
$("#high_hat").submit(...
How can I move an image from left to right with jQuery?
...
I have 25 components which includes [textarea, textfile, radio, combo, etc...] and I have written a key event so that when "ENTER" is entered, I call a function which will submit the page.
Now my page is getting submitted when I press enter, even in the textarea which should not be. So is there any way that I can not submit the page if ...
I need to allow the user to check only one checkbox from more than five checkboxes.The checkboxes having the same name and diffrerent values.I need to store these values and retrive from database.Whether Jquery allow us to this feature?
I am a newbie...Thanks in advance..
...
$(document).ready(function() {
var options = {
target: '#output1', // target element(s) to be updated with server response
beforeSubmit: showRequest, // pre-submit callback
success: showResponse // post-submit callback
};
$('#myForm1').ajaxForm(options);
});
function showRequ...
using jquery, how can you distinguish between refreshing vs. navigating away from the current URL ?
...
All jQuery selectors return an array of objects. Are these objects always in the same order as they are in the HTML? Can I rely on this?
...
Hi I'm trying to make a function that will add a striped effect to an unordered list, I've got the following so far but cant work out how the selector should work.
(function($) {
$.fn.stripe = function(){
this.$("li:even").css("background-color","#f00");
};
})(jQuery);
$("list_id").stripe();
thnks
...