Hi,
Assuming your table has the same number of s in each .
You can try this approach:
First find the position of the selected in its .
Then find the prev() or next() .
Then select the with the same position in that .
Try this:
$('td').click(function(){
var trparent = $(this).parent('tr')
Hi,
If you just want to do a simple show/hide then you don't need to add a
class. You can use jQuery hide() and toggle() functions.
Like this:
$('#tabs dd').hide();
$('#tabs dt a').click(function() {
$(this).parent().next().toggle();
return false;
});
Paul
On Oct 27, 3:59 pm, Michel Bel
Hi,
I think you need a space before the #lightboximg
Try
"#jqmTarget".load(myUrl +" #lightboximg")
Paul
On Oct 4, 9:15 am, FineThought wrote:
> Hi,
>
> I'm brand new to jQuery and learning as I go. I've searched a lot over
> the web regarding this and need some help. I'm trying to use a string
Hi,
Can you post an example of your animation code or link to a demo page.
Paul
On Aug 10, 4:39 pm, Tom Cool wrote:
> Hi,
>
> I'm experiencing a large amount of flickering in a image i move with
> animate(). Looking at jQuery's source code, i think it has something
> to do with the setInterval
Hi,
Change the sortList definition to
sortList: [[3,0]],
or
sortList: [[3,1]],
depending on what order you want the column sorted in.
You could also tidy up your HTML by adding tags and
elements are not valid inside
Paul
On Aug 7, 6:53 am, jsrobinson wrote:
> I have two custom parsers, one
Try,
$('.start-here li:has(li)').append('');
Paul
On Aug 5, 4:59 pm, Panman wrote:
> I have selected a list that contains sub-lists. Now, I'd like to
> search for the list items that contain sub-lists (but not including
> the sub-list-items). I think the example below will explain what I'm
> t
Hi,
Try this.
Add overflow:hidden to #box and then animate the left of #innerbox:
#box{
width:800px;
height:400px;
border:1px solid #444;
overflow:hidden;
}
$("#toggle").toggle(function(){
$("#innerbox").animate({ left: '180px' }, 'slow');
},function(){
$("#innerbox").animate({ left: '0
Hi,
Try setting width of image to 90%
.fisheyeItem img { width: 90%; }
Paul
On Jun 29, 9:46 am, Wolfram Rösler wrote:
> Hello,
>
> I have a couple of images in a fisheye that I want to be displayed
> with some space between them.
>
> Currently, jQuery displays the images directly connected to
Hi,
Try this:
$(this).parents('div').attr('id')
Paul
On Jun 14, 2:47 pm, Antonio wrote:
> Hi all,
>
> I try to rephrase...
> I want to get the value from the id attribute from a parent element
> I try in this way...
>
> $('div').parent().attr("id")
>
> but it returns only blank value although t
Hi,
I'm confused as to why you are trying to load XML into an iframe using
AJAX.
Why not just set src="atom.xml" and load the feed directly into the
iframe?
Paul
On Jun 9, 9:13 pm, barton wrote:
> I have been trying to insert xml into an iframe. I can do it kinda.
> The problem is the iframe ha
Hi,
The API documentation shows how to select values -
http://www.fyneworks.com/jquery/star-rating/#tab-API
If you leave the value blank then the rating is cancelled.
$("[name='star1']").rating('select','')
It looks like you can also use the 'drain' command - but it's not
documented in the API.
$
Hi,
Your HTML is not valid. IDs must be unique - you have used #txtSpin
and #color twice.
Try renaming the first input box as id="txtSpin1" and the second as
id="txtSpin2"
Your JavaScript code then becomes much simpler:
$('#txtSpin1').SpinButton({min:1});
$('#txtSpin2').SpinButton({min:1});
or
Hi,
Try this
var xxx = 5;
$('input:attr[value="'+xxx+'"]').parents('tr').remove();
Paul
On May 11, 8:37 pm, Massimiliano Marini wrote:
> Sorry,
>
> the right question is:
>
> How can I remove the entirely row containing the checkbox with the value for
> example 5?
>
> The value is returned to
Hi,
Your code is missing th for
When I add this in everything toggles as expected -->
http://jsbin.com/esaso/edit
Paul
On May 6, 3:37 am, brian wrote:
> jquery 1.3.2
>
> I have a nested group of lists similar to below where all but the
> top-level list is hidden. Clicking a link should op
Hi,
I think it may be to do with 'border' being shorthand for all the
individual border properties.
If you code this
$('#byClass').append($('#byClass').css('border-top-width'));
then it shows the width as '1px'.
hth
Paul
On May 1, 9:39 pm, Panman01 wrote:
> One thing to note, I've found that th
Hi,
The prepend function just adds HTML at the beginning. You have to set
the select yourself. Simplest way would be like this:
$('select').prepend('Select ... ');
or something like this:
$('select').prepend('Select ... ');
$('select option:first').attr("selected","selected");
Paul
On Mar 17, 1
Hi,
Try using prepend to add at the beginning.
See jQuery docs - http://docs.jquery.com/Manipulation/prepend
Paul
On Mar 16, 3:25 pm, Chizo wrote:
> Hi people, how can i add a first option value to a combobox,
> containing for example "Select..."
> With append i can add the new value, but i do
Hi,
You have a trailing comma at the end of the parameter for the animate
commands - it's not needed. I think IE treats it as invalid JS so
ignores the command. So try it like this:
$(".sidebar a").mouseover(function(){
$(this).animate({
marginLeft: "10px"
}, 400 );
});
Paul
On Mar 16, 7
Hi Chris,
Your .empty() refers to .gloves_wear - but the class on the is
wear_gloves !
Otherwise code looks OK.
Paul
On Mar 16, 2:59 am, Chris Hall wrote:
> I'm trying to remove radio buttons under a specific circumstance, but
> I'm not having much luck.
>
> Here are the appropriate snippets:
Hi Oliver,
Your switch statement looks a bit strange to me - I've never coded one
that way before.
Try redoing it as a couple of if {} else {} statements.
IE is must fussier about syntax than FF so I always check for syntax
errors when IE starts misbehaving.
Hope that helps.
Paul
On Feb 21, 1:0
Hi,
Here are a couple of ways to tackle this.
First just using parent(). This traverses up to the outer table and
then uses that as the context for selecting table.b :
$("table.a").click(function(){
var parent = $(this).parent().parent().parent();
$('table.b', parent).toggle();
});
Second tra
Hi,
In jQuery 1.3 there is a new .live() method that is a subset of the
livequery plugin.
http://docs.jquery.com/Events/live#typefn
I tried this and it works OK - I get 2 alert messages:
$(".flickr-photo a img")
.live("click", function() {
alert('img click');
});
$(".flickr-photo a")
.li
Hi again,
Sorry that didn't work. It might be interacting with something else in
your HTML or JS.
You can chain effects together by using a callback function so to
chain all three you would do this:
$(document).ready(function(){
$('#photo img').load(function() {
$('.pic').fadeIn(4000, func
Hi Alain,
I assume you want to wrap the node around the first table row.
$('table tr:first').wrap('');
If that doesn't do it then post your html and where exactly
you want to add
Paul
On Feb 11, 5:58 pm, Alain Roger wrote:
> Hi,
>
> i have a tage and i would like to add a node using jQuer
Hi Alex,
I haven't tested this so might be a red herring.
When you add the clonedRow you append it to the table. When you scan
for last row you look for last tr in the form. It could be that IE
adds the new row after the tag. Try changing the append
command to:
$("#dmsProductTable form").append(c
Hi,
Try something like this:
$('#photo img').load(function() {
$('.pic').fadeIn();
$('div.position').fadeOut();
$('.site').fadeIn();
});
The .load() event should fire when the images has loaded.
You don't need to remove the classes "pic" and "site" to get the fades
in/out to work.
Paul
On
Try this
$('tr td:eq(1)').text();
indexing starts from zero so second column is index=1.
Paul
On Feb 11, 8:43 am, Radosław Lejsza wrote:
> Hello!
>
> I've got some question:
>
> I've got variable 'tr' which contains html or text from table row.
> How I can read text from second tag. This tag
Hi Chris,
It's a bit tricky trying to get 2 effects to run at the same time on
the same jQuery selection. My approach would be to change the HTML
mark up so that the 2 effects can be applied to different selections.
So if you have some HTML like this:
Toggle
This is the content to be h
Hi,
You don't need to run the video - try this link instead
http://jsbin.com/ojuju
There are two snippets of Javsscript code in the page that is shown:
The first uses uses a class to control the hide/show.
The second uses $( selector ).is(':visible') to test if the text is
visible.
Paul
Brian
Here are a couple of demos that might help.
http://jsbin.com/ojuju/edit
Paul
On Feb 9, 4:01 am, brian wrote:
> How can I tell what the visibility state of an element is which has
> just been toggled? Is my selector no good or is it a matter of timing?
>
> . The situation is that I'm di
Hi,
I assume the elements are wrapped in a . So first give the
a unique ID so it's easy to identify. So code looks a bit like
this:
column 1
column 2
column 3
Now you can code the one jQuery command to operate on all s within
the :
$('#columns li').hover(
function () {
$(this).ad
Hi,
Try $('#PB'+n) where n is a variable set to 1,2,3,etc.
Paul
On Dec 12, 11:55 pm, Ashish wrote:
> How can i write selector to retrieve elements (span) that contains
> 'PB' as part of id.
> My ids are dynamically generated as PB1 PB2 etc.
Hi Michael,
Try this. It uses the index of the within the and then
removes the class from all elements equal or greater than it.
The code is a bit cumbersome but I think it works.
lorem ipsum
lorem ipsum
lorem ipsum
lorem ipsum
lorem ipsum
$('#links a').click(function(){
$('a:gt('+($("#li
Guy,
A - I understand.
I think you can make your code a bit simpler and not use the .each
(function(). It depends on rest of the HTML whether it works or not.
Something like this:
$('tr.myclass').parents('table').parents('table').css("border", "4px
black solid");
Rgds Paul
On Dec 11, 9:04
Hi,
Give the outer table a unique id such as id="outer"
then use a css style to set bthe border
#outer {border:1px solid red;}
Not sure why you want to use jQuery?
Paul
On Dec 11, 5:13 pm, Guy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a dilemma where I need to style the table which encl
Hi,
This selector looks a bit strange $('a#period').
Can you post the relevant HTML code please.
Paul
On Dec 11, 4:19 pm, frits1607 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I need to make a dynamic form. This morning I found jquery and this
> looks like the tool I need.
>
> My first challenge
Have a look at these two plugins:
Galleria - http://devkick.com/lab/galleria/
Cycle - http://malsup.com/jquery/cycle/
Paul
On Dec 9, 5:57 am, expat101 <[EMAIL PROTECTED]> wrote:
> I am looking for gallery and slideshow effects like these, can i
> achieve them with jquery and how please
>
> htt
Hi,
I think your problem is because #result is empty first time through so
slideUp doesn't do anything - therefore slideDown doesn't either.
Try adding this as the first document ready item to populate #result
with a blank paragraph:
$("#result").html(' ');
Paul
Here is some basic jQuery that does what you want.
First hide all elements with class="blocked"
Then add click handler to elements with class="add" to locate the
first hidden within the Category and to remove class="blocked"
and show the
Add similar click handler for remove element.
$('.bloc
Put all the code you want executed after the post is complete into the
callback function.
or
Change chkmail function to call a new function (with the password and
email checks) instead of returning emailerror.
Paul
On Nov 27, 4:12 pm, QuadCom <[EMAIL PROTECTED]> wrote:
> I may have titled this
Hi,
It's very hard to tell what you are trying to do from looking at just
the JavaScript. Can you post some HTML and a short explanation of what
you want to achieve.
jQuery has a built in toggle function that shows hidden elements and
hides visible ones. So your second function would be coded som
I don't think jQuery supports that directly.
I'd approach this by adding a class to the element and then
defining css stylesheet to set the colors.
$("a").addClass("myclass");
CSS
.myclass {color:#cc;}
.myclass:hover {color:#cc;}
etc.
Paul
On Nov 20, 2:27 pm, c0d3m0n3k3y <[EMAIL PROT
Have you got your classes and ids mixed up. The javascript $("#extra")
is acting on id="extra" but I don't see anything with this id in your
code. There is a with class="extra" - which would be $
(".extra").
Paul
On Nov 20, 6:47 pm, livewire9174 <[EMAIL PROTECTED]> wrote:
> Hi,
> No idea what I
Try
$("tbody:hidden tr")
Paul
On Nov 17, 12:06 pm, stuf99 <[EMAIL PROTECTED]> wrote:
> Hi,
> How do locate tbody´s with a certain style, or better, how do get a
> list objects who's parent, a tbody, has a certain style, in this
> case display == none
Hi Alen,
Looks to me that when you click on a tab then a new page gets loaded.
The activateTabMenu function changes the classes in the old page, but
the new page is then loaded which will just apply the CSS. The
activateTabMenu function does not have any affect on the new page.
You could try addi
Hi,
I'm not sure why you are trying to override the click event - because
when you click on a menu item I'd expect a new page to load?
If you want to stop the new page loading, then you need to cancel the
default event for the tag by adding return false,
$(document).ready(function() {
Hi,
I've found a slightly messy solution which is to grab the html for
each element and then strip off the tags. It works but is
dependent on the exact sequence of code.
I would make things easy for myself by adding some extra tags. Such as
putting tags around the Tilte text - then it's easy
ed the cycle
> > plugin here:
>
> >http://www.canons-regular.org/
>
> > --Karl
>
> >
> > Karl Swedberg
> >www.englishrules.com
> >www.learningjquery.com
>
> > On Oct 8, 2008, at 11:03 AM, deronsizemore wrote:
>
> &
Hi
Try adding return false into your click handlers to stop the browser
calling the url in the href'
$("#rssInfo").hide();
$("a#subscribeRollover").click(function () {
$("#rssInfo").show("fast");
return false;
});
Hi,
Your HTML is not valid as you can't have a inside a tag.
As you have a mix of element types in your accordian I suggest you use
an extra as a wrapper and adjust the jQuery code to operate on
the instead of the .
Something like this:
Latest news
Lorem ipsum dolor s
Hi,
Rather than replace the href in the source code you could add a click
handler to call your JavaScript function.
A bit like this:
$(function(){
$('a[rel="paginate"]').click(function(){
ajax_getPage($(this).attr("href").split("=")[1]);
return false;
});
});
Paul
On Oct 12, 10:56 p
Hi,
I'm not clear what you are trying to do in the last example.
This may help:
1 - You have mixture of CSS styles and javaScript to control
visibility of your elements. It would be easier just to use
javascript. Put something like this in document ready and remove the
CSS :
$(do
Hi,
This plugin might do what you want.
http://plugins.jquery.com/project/moreSelectors
I haven't tried it so afraid I can't help with using it.
On Oct 9, 9:16 am, Miha <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am wondering if it is possible to replace specific font color of all
> style classes
OK - I understand better now what you want to do.
You can use the :eq selector to select an element by index.
With 3 elements per they have index of 0,1 and 2.
So index 1 is item 2
You can select the second within each by specifying "ul" as
the context for the selection.
This should do what yo
If you want to remove class 'selected' from elements and add it
to others you could use toggleClass.
You canthen use fade out before toggling, and fade in afterwards.
$("li.selected").fadeOut("slow");
$("li").toggleClass("selected");
$("li.selected").fadeIn("slow");
Paul
On Oct 9, 12:53 pm,
Hi,
You could try the cycle plugin:
http://plugins.jquery.com/project/cycle
The documentation is very good with lots of examples.
You can use the before and after callback functions to show/hide the
caption
and CSS to position the caption on top of the image.
Paul
On Oct 6, 12:44 am, deronsizem
I'm not sure why you are creating the array. If you don't need it for
anything else then you can get at the html in one line:
var test = $('.RepeatedItemElement[id = "headline"]',
this.parent).html();
On Sep 30, 3:51 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I was expecting this kin
If I understand this - you are trying add the class 'grid-loading'
when the button is clicked and remove it when the query completes.
If so, then the removeClass command needs to be in the callback
function of the .load command.
Paul
On Sep 29, 4:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wr
e element exists
> $(frames.testframe.document).ready(function(){
>
> });
>
> });
>
> On Sep 25, 4:56 pm, Paul Mills <[EMAIL PROTECTED]> wrote:
>
> > The ready function fires when the iframe is ready in the DOM, not when
> > t
The ready function fires when the iframe is ready in the DOM, not when
the contents of the iframe are ready. I think you need to use the load
function - a bit like this:
$(window).load(function () {
$('#test',
frames['testframe'].document).click(function()
Hi,
I think you need to put the code for the second alert into the
callback function of the load().
So event.js should look something like this:
$(document).ready(function() {
// to load the content.html
$("a#b1").click( function() {
$("#c").load("content.html",fu
61 matches
Mail list logo