Hi folks
I'm looking for a handy way to pan across an image; my theory is that if
you set the image as the background to a div and then, on mouse move,
change the background position, this would work pretty sweetly.
Is this possible with JQuery, and if so, does anyone have the
code/syntax
AVG is currently reporting all my copies of jquery.js as having the
above virus!
Is this a false alarm, and is anyone else getting this message ?
And if it is a false alarm, how should we notify AVG so that people
visiting jQuery sites don't get scared off by this message ?
TIA,
Liam
AVG is currently reporting all my copies of jquery.js as having the
above virus!
Is this a false alarm, and is anyone else getting this message ?
And if it is a false alarm, how should we notify AVG so that people
visiting jQuery sites don't get scared off by this message ?
TIA,
Liam
Liam Byrne
*OnSight.ie
*/Winner of Limerick City Enterprise Board's Best New Technology
Business 2004 Award
/
web: http://www.onsight.ie email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
phone: 061 22 99 86
mobile:087 2730
Try
$(#scrollStats).html(im here!!);
Bhaarat Sharma wrote:
Hi
Can someone please tell me how i can change the text between span tags
on the fly using jQuery
I have tag like this
span id=scrollStats style=font-size: 70%; width: 80px; text-
align: center; position: absolute; bottom: 392px;
What's li meant to be - in that code it's not assigned at all
If it's meant to be every list item on the page, then it should be
$(li), and you'll also need to check whether or not the outer ul or
ol for the li is visible.
Liam
Aaron wrote:
well I don't plan using a class I am trying
An explicit by id style setting will always override a class-level
style setting unless you use !important.
Any way that you could have the some_div as a class instead of an ID ?
That way the most recent applied class will override the initial setting.
Liam
rene.olivo wrote:
Hello, I
In order to animate colour, the browser needs to know in-between
colours - e.g. fading from black to white goes through shades of grey
There's a color (American spelling) plugin that will do the trick -
just add it and your existing code should work.
Is there an option within the draggable function to allow you to add a
border to a cloned currently-being-dragged object, similar to the way
that cursor works ?
Thanks,
Liam
('dragging');
}
});
- Richard
Richard D. Worth
http://rdworth.org/
On Fri, May 23, 2008 at 1:12 PM, Liam Byrne [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
Is there an option within the draggable function to allow you to
add a border to a cloned currently-being-dragged object
My understanding is that something visible that's inside something
hidden will report that it's visible
Otherwise, if you were to hide the hidden-div-1 and then show it, the
internal inside-hidden-div would also need to be explicitly re-shown ?
Maybe an inherit might get around this -
a) Since you're using PHP, use that to access a $_GET variable and
make that one visible:
style
.hiddenBits {
display:none;
:
:
}
/style
div id=faq class=hiddenBits ?php if ($_GET[section]==faq) { ?
style=display:block?php } ?a name=#faq/aFAQs go here/div
div id=prices
...or style the main link so that it's not underlined cursored as a
link, because yup, I agree with Seth - it's confusing / unexpected as it is.
Seth - TA wrote:
Just a suggestion - it took me a while to figure out I had to click
the triangle for the drop down to work. Not many people are
kiran wrote:
Hi Friends,
I am very new to JQuery, infact Iam checking if we can use JQuery for
our requirements. In regards to that I have couple of queries.
1. Can we do file operations using JQuery ? For instance if I make
some modifications to DOM/HTML, can I save it back to the disk?
How are you calling removeItem ?
It needs two parameters - the name and the object reference.
Liam
Mark wrote:
hey,
function removeItem(name, obj)
{
var answer = confirm(Are you sure you want to delete: + name + ?)
var test = obj;
if (answer)
{
If it's just the text you want, I can't see why the following wouldn't work:
$('#myList li').each(function(){
text = $(this).text();
// do something using the text
});
Jack Killpatrick wrote:
Hi All,
Wondering if anyone can help me out with this...
I have a list like this and want to
Maybe I'm missing something, but document.write(result) will only work
if the variable result has a value, and I can't see it being set anywhere ?
Liam
MrFishKill wrote:
Hi,
Sometimes, via AJAX, I'm getting binary content from a server
(application/octet-stream), other times html-text.
Would've thought it should be $(#info).html(Test), but nevertheless
that example that you gave works fine for me.
Are you sure that the jquery file referenced in the first script tag is
in that location, i.e
js/jquery-1.2.3.pack.js
and that it's using that filename ?
L
lwoods wrote:
Maybe try using hoverIntent ?
Liam
lamy wrote:
Hi there!
I'd like to create an effect like the one on the jquery Ui website. Someone
hovers over an item and is changes its background color smoothly.
This is how far I've got:
$(.actionmenu).mouseover(function(){
Check that the ID name of the image object are the same, and that
there are no duplicate names on the page.
L
pere roca wrote:
hi,
a very simple question related to ** IE$ behaviour.
I have a very very simple jquery function to change the src of images; after
applying it, while in Firefox
IE 7 shows scrollbarsmaybe the animation isn't making it big enough
to display it properly ?
Make it bigger and see what happens.
L
noon wrote:
I wrapped it in a div and slid the div. Still same problem, visible
again at http://nunyez.googlepages.com/slidedowntest
On Jul 8, 6:37 pm,
Ariel beat me to what I was going to say! VERY bad idea if you want to
register in search engines
Liam
Ariel Flesler wrote:
Ok then:
$('div.box[title]').each(function(){
$('h3 /').text( this.title ).prependTo(this);
});
Note that you're giving non-js users (and search engines) less
Hi folks
I did this before and can't remember how.
If click and double-click are both bound to the same object, how can I
stop the click from firing during double-click ?
Thanks,
Liam
If you're returning the login form via AJAX, the events can become
unbound (i.e. any events bound to login_submit won't work).
Check out livequery to counteract this
fear and wonder wrote:
what i'm trying to do is have a login form on my site, it looks like
this right now...
Email:br /
Hi folks
I have a zoom-style app that moves the background-position of an image
if the mouse is moved on an element.
The code is essentially
$(#leftImageHolder).css({backgroundPosition:newX+%
+newY+%});
In all compliant browsers, this works perfectly and smoothly, but in IE6
And therein lies the problem.
If you access /images, with the backslash, then it will look in the
root OF THE SERVER
Because you're running from a folder WITHIN that, (mytrial) the images
won't be found - the correct path is /mytrial/images
If you change this to work locally, be sure to
2 observations
1) is fieldsubmcategory meant to have the m ?
2) is either fieldsubmcategory or value a literal ? Do you need to do
something like:
input:radio[name=+field_submcategory[value]+]:checked
or
input:radio[name=field_submcategory[+value+]]:checked
Liam
LoicDuros wrote:
Hi
MUCH simpler than that.
1) Put the image into the background of the 500px div
2) Capture / track the mouse position
3) Divide the x-position by 5
4) Use that to set the x-axis percentage of the background position
Just make sure you set the IE6 background image cache so that it doesn't
Why have you used ?
if ($(this).attr(*id*) == somevalue)
For that to work, your select box would need to be
select id=MySelectID
option value=Select something/option
option id=somevalue value=somevalueMy selection/option
/select
and I'm not even sure that would work.
Try
if
options:
1) Add an actual ID to the option, so that your request for the option
with id='somevalue' will work
2) Replace the jQuery check with the option with value='somevalue'
L
Liam Byrne wrote:
Why have you used ?
if ($(this).attr(*id*) == somevalue)
For that to work, your select box would
Liam Byrne wrote:
Why have you used ?
if ($(this).attr(*id*) == somevalue)
For that to work, your select box would need to be
select id=MySelectID
option value=Select something/option
option id=somevalue value=somevalueMy selection/option
/select
and I'm not even sure that would work.
Try
it from being a background
image to a div that changes position but this has helped me and has
most definitely given me ideas. You may see it in action at
http://www.myfuche.com/
Thanks Liam.
On Jan 29, 11:41 pm, Liam Byrne l...@onsight.ie wrote:
MUCH simpler than that.
1) Put the image
Just a quickie...
$(document).ready(function() {
numVisible=4;
itemHeight=$(#myList li).height();
$(#myList).css({height:numVisible*itemHeight,overflow:hidden});
});
In IE, this loses the bullet points, but it's a start and maybe someone
else has a solution for that.
Liam
mofle
Was looking for a good jQuery-powered WYSIWYG / Rich-Text Editor and any
that I tried seemed to all have limitations or bugs, especially when
dealing with bullet points.
Then found DSRTE, which was GREAT.
But having uploaded it to the target site, it turns out that it doesn't
work
Hi folks
Just wondering if there's a quick/shorthand way of doing this:
I'm doing a navigation system where I want clickable items but I want to
put the current item number in a footer, e.g.
Any ideas of a quick way (without using each) to get CURRENTSTEPNUMBER
? Basically the reverse of
much of a load difference ?
TIA
L
Liam Byrne wrote:
Hi folks
Just wondering if there's a quick/shorthand way of doing this:
I'm doing a navigation system where I want clickable items but I want
to put the current item number in a footer, e.g.
Any ideas of a quick way (without using each
Hard to tell, since you haven't said what it is doing or what you're
expecting it to do, but I think data should be {oname:name}
Maybe that's what's wrong ?
You'll also need a return false to prevent the standard form submit from
kicking in
brightdad...@googlemail.com wrote:
Hi
Eagle Eyes (the name is fitting in this context) will let you view the
server-side source code of a web page =-O
Considering that that source code would potentially include database
passwords, etc, it had better be an April 1st spoof!
brian wrote:
Isn't that tomorrow?
On Tue, Mar 31,
Just bear in mind that that code will fade in as soon as the SRC
attribute is set - it won't wait for the image to load...could result in
an empty box fading in, and then the image suddenly appearing when it loads.
you'll need to trigger a .load function for the image too; this should
be
I think the OP does want it to follow the link, but show the alert first ?
So return false is not required.
OP - make sure jQuery is loading (there's no error if it doesn't). Try
just an alert message within $(document).ready() itself.
Steve wrote:
Hi,
You need to return false so the
AJAX would only be required of you wanted it to post to the server.
The jQuery to do it would be
$(#buttonName).val(New text for button);
Goldielocks wrote:
Hi,
I would like to change the text of an asp button from client-side code
without posting back to the server. Is this possible to
The 2 options won't work as radio buttons then, though, will they ?
waseem sabjee wrote:
Hi Luigi.
Change your HTML Structure to this
div id=choices
input type=radio class=option id=personaFisica
name=personaFisica value=0 /
input type=radio class=option
The function existed, but the element didn't exist inside the container,
so there was no element to bind the click to.
You can check this for yourself by doing alert($(.new_button).length)
just after both lines that you have listed.
So.
1) Try adding the $(.new_button).click(.)
Think of it logically.
To animate a property, the computer needs to work out the in-between
stages (tweening) to show:
e.g animate width from 10 to 20 = 11,12,13,14, etc
to animate opacity from 40% to 100% = 41%, 42%, 43%, etc
You can also animate colours*, because behind-the-scenes
Is it possible that IE7 8 see html as a reserved word ?
Try changing the hmtl variable in both function(html) and
$('#nav_admin').html(html) to something else
L
brian wrote:
On Thu, May 14, 2009 at 10:14 PM, brian bally.z...@gmail.com wrote:
I have a wee bit of code that handles a
Instead of .attr('onblur'. fn)
Try .blur(fn)
Tobeyt23 wrote:
This works great in firefox, why doesn't this work in any other
browser? Can the attribute onblur be added another way to work in all
browsers?
jQuery('#'+nameHex[0].replace(' ','__')+'_qty #'+fields[c].id).attr
('onblur'
$(#content).load(newfile.php) ?
rayche...@gmail.com wrote:
Back again,
I mean most method consist of hidding inside a div id=content
inside the same page.
Then the popup will display the what's inside the div ...
Is there a way to display from an external html or php file.
Tks
Raymond
, then;
Hit the 'Get a quote' button
I wanted the contact form to animate in, but it's OK how it is. Don't suppose I
have a choice
Thanks,
L
On May 15, 2:00 pm, Liam Byrne l...@onsight.ie wrote:
Think of it logically.
To animate a property, the computer needs to work out
That code that you posted is replacing a newline with nothing - the
comma is BETWEEN the parameters and is not one of them
Try csvString=csvString.replace('\n',',');
Nitin Sawant wrote:
Hello frendz,
I'm trying to replace newline char frm Google finance csv
file with comma but its
If you're outputting it to a HTML page, then all of the characters
should be lt; and all of the characters should be gt;
That will prevent them from being actual SCRIPT tags.
L
Paul Tarjan wrote:
I don't want to execute it. I want to print it out to the html page so the
user knows how to
+2009enddate=May+5%2C+2009start=225num=25output=csv
--
/body
/html
On May 20, 3:56 pm, Liam Byrne l...@onsight.ie wrote:
That code that you posted is replacing a newline with nothing - the
comma is BETWEEN the parameters and is not one of them
Try csvString=csvString.replace('\n
What do you mean refresh span ?
You can reset the content of a particular SPAN using
$(spanReference).html(NEW CONTENT) or $(spanReference).text(NEW CONTENT)
But unless you've changed the content of the SPAN (using one of the
above, in which case you already know it), what's there to
Maybe I'm wrong, but I think
myElement.animate( {padding: 12px} )
won't work anyway ? Shouldn't it be
myElement.animate( {padding: 12} )
That said, tests here show that only IE Opera offer a smooth animation
- the others (FF, Chrome Safari) seem to jump
L
Jason
,
thats y am asking ,,,
thanks in advance
On Fri, May 22, 2009 at 12:30 AM, Liam Byrne l...@onsight.ie wrote:
What do you mean refresh span ?
You can reset the content of a particular SPAN using
$(spanReference).html(NEW CONTENT) or $(spanReference).text(NEW CONTENT)
But unless you've changed
, or explicitly set the
initial padding on the element (as opposed to via a stylesheet).
On May 21, 12:16 pm, Liam Byrne l...@onsight.ie wrote:
Maybe I'm wrong, but I think
myElement.animate( {padding: 12px} )
won't work anyway ? Shouldn't it be
myElement.animate( {padding: 12
to 12px from whatever is currently set in the
stylesheet, the padding first 'jumps' to 0px, then animates to 12px.
So, for yours, maybe if you tried setting the 4 sides individually (or
set the padding on the element directly), it would fix your
'jumpiness' as well?
_jason
On May 22, 6:51 am, Liam Byrne
, then will will not affect ,
thats y am asking ,,,
thanks in advance
On Fri, May 22, 2009 at 12:30 AM, Liam Byrne l...@onsight.ie wrote:
What do you mean refresh span ?
You can reset the content of a particular SPAN using
$(spanReference).html(NEW CONTENT) or $(spanReference).text(NEW
CONTENT
This is definitely the best option, as you can achieve everything that
you might need
The disabled css class can
a) have the same text colour as the text
b) set text-decoration to none
c) set the cursor the normal one
d) have an a.disabled:hover pseudo-class to do a b
Just remember to
Well, it looks like the URL that would be called is generate_my_image
Is that a valid URL if you test it ?
And is it in the same folder as the test page ?
L
Chris Curvey wrote:
this has to be simple, I'm just brain-cramping on a Friday...
I have a link that generates an image dynamically.
If the iframe is from a different domain, then this is not possible.
Paul Peelen wrote:
Hi,
I am trying to access the content of an iframe. I have search google
and read a couple of other post, but my problem is a little bit more
complicated.
I can't use the ...contents().find(whatever)
You could put the image as the background to a div, and add a
transparent gif as the image source, 100% width and height of the div.
You can also disable / control the right-click using jQuery.
But as others have stated, the image will still be in the browser's
cache on their hard disk, so
You're checking the css attribute : height
$container.find('div.listContainer ul').css('height');
If that's set to auto, then that's what will be returned.
What you want is the ACTUAL height.
$container.find('div.listContainer ul').height();
L
simon wrote:
I have this hover function and
To be expected. Just as .click will trigger every time you click, the
.load will trigger every time the image is loaded.
And each time you click, you're telling it to add an additional load event.
Either
a) unbind(load) before the .load (useful if you want to do something
different each
Is there an error / typo in the URL being requested ?
Should it be charts/gen_*e*_rate_chart.php ?
L
pacodelucia wrote:
sorry for the type error. I meant really that
$(#reportChart).reload(charts/genrate_chart.php);
does not work with the # selector.
On Jul 1, 3:51 pm, Olaf Bosch
:
document.getElementById('reportChart').reload(charts/
pie_chart.php); //works
$(#reportChart).reload(charts/
pie_chart.php); // does not
work
I am using firefox 3.5
On Jul 1, 5:03 pm, Liam Byrne l...@onsight.ie wrote:
Is there an error / typo
Hi folks
I have a function that operates on left and right arrow keypress, but I
want to temporarily return true if they're pressed while an input has
focus.
One way I thought of was to check the tagname of the event ?
The other way is to check the length of the input:focus array, but I
Cheers John!
Had forgotten about / omitted the .srcElement :-P
L
John Beppu wrote:
http://docs.jquery.com/Events/jQuery.Event#event.target
On Wed, Jul 15, 2009 at 3:07 AM, Liam Byrne l...@onsight.ie
mailto:l...@onsight.ie wrote:
Hi folks
I have a function that operates on left
You've no jQuery in there for a start.
Instead of
var c = document.getElementByID(f);
c.style.display = block;
try
$(#+f).show();
L
chuck wrote:
I am having some trouble getting some divs to display dynamically. Can
someone please offer a pointer?
For something like this, you'd be best off having all 4 states of the
button in a single graphic file, one under the other, and using the
background-position to control it.
The image would be 4 times as big as the allocated div or li, with only
a quarter of it showing at a time depending on
After setting a src, the width and height won't be available until the
image has loaded (can take 3 or ~ seconds, depending on image size).
You need to trigger the calculation based on an image_1.load event firing.
L
weidc wrote:
hi,
at the moment i'm trying to get the height width of the
A click is an EVENT, it either happened or it didn't. If it didn't
happen, then the else code that you're talking about would be running
constantly and repeatedly.
I'm not sure if what you asked for is what you meant, because if a
button isn't clicked describes every other moment or event
Yup, add then click, and use the return value (normally false to stop
the HREF triggering) to allow the HREF to continue (i.e. return true in
the function)
But if you're revealing a password like this, it won't be very secure,
because something HIDDEN is still there in the View Source
L
, the password reference was just as an example :)
Apologies if my questions seem a bit noddy - but I'm way out of my
depth here! :(
On Jul 16, 3:19 pm, Liam Byrne l...@onsight.ie wrote:
Yup, add then click, and use the return value (normally false to stop
the HREF triggering) to allow the HREF
GET
x=$(#elementName).offset().left;
y=$(#elementName).offset().top;
SET
$(#anotherElementName).css({left:x,top:y});
NoMatter wrote:
Hi Guys ,
Its my first time here. My Question is ..
When a button click , I need to change the positions of few DIVs .
How do I assign X and Y .
I saw there
If you do what you're thinking, then every second content element would
be OUTSIDE of any div
What (I think) you need to do is:
FIRST hr/ : OPEN DIV
LAST hr/ : CLOSE DIV
EVERY IN-BETWEEN hr/ CLOSE DIV FOLLOWED BY OPEN DIV
If you don't do all of those in a single step, however, I'd suspect
I had to go searching for the script in the js file
$(#toonalleseizoenen).toggle(function(){
$(#alleseizoenen).animate({ height: 'hide', opacity: 'hide' },
'slow');
},function(){
$(#alleseizoenen).animate({ height: 'show', opacity: 'show' },
'fast');
});
You're using
Why not simply put the script src= into the template ?
That way, if you need an update, you can test easily and replace easily.
L
Feris T wrote:
Hi,
Can I copy all code from jquery source into inline src html ? I need
to use it in Blogger template.
Thanks,
Feris
Think there's a color plugin that will make this work ?
http://plugins.jquery.com/project/color
L
Rick Faircloth wrote:
NM…”Only properties that take numeric values are supported (e.g.
backgroundColor is not supported).”
*From:* jquery-en@googlegroups.com
I could see that being VERY slow
$(p).each(function() {
if ($(this).text()=='When the day..believing') {
$(this).replaceWith('spanchota/span');
return false
}
})
would work, but I wouldn't recommend it.
Anyway, why would you want to do this, and how would you
Assuming that people entering the string leave spaces after punctuation
- commas, full-stops, exclamation marks, etc
I've often had to tweak routines like this because people didn't.
Depends on how accurate you need it, though; the code below will be
thrown slightly by dashes, em-dashes
A letter count is FAR easier - just get the string's length.
L
Rick Faircloth wrote:
Is it as simple to do a letter count?
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf
Of Liam Potter
Sent: Friday, July 24, 2009 6:53 AM
To:
Surely $(#folders).replaceWith will actually do the - er - replacing ?
L
Liam Potter wrote:
$.load(../+myModule+/+navTitle+/folders/index.php,
function(e){
console.log(e);
$('#folders').replaceWith(e);
return false;
});
try that
robing
Try using $.get - it'll return the data
From http://docs.jquery.com/Ajax/load :
.load : Load HTML from a remote file and inject it into the DOM.
HOWEVER :
.get : Load a remote page using an HTTP GET request.
$.get(../+myModule+/+navTitle+/folders/index.php, { OPTIONAL PARAMETERS
HERE },
How are you setting the border in CSS ?
If you set it explicitly, it should work cross-browser
L
Gaiz wrote:
I found 2 problems when I use jQuery on IE8
1. When I use $('elementId').css('border-top-width'), it return
medium, but other browsers return 0px
2. After domready, my page, that's a
it error on IE8 only (IE7, FF is work fine)
On Aug 11, 2:26 am, Liam Byrne l...@onsight.ie wrote:
How are you setting the border in CSS ?
If you set it explicitly, it should work cross-browser
L
Gaiz wrote:
I found 2 problems when I use jQuery onIE8
1. When I use $('elementId
Paul Collins wrote:
I'm using the add JQuery command,
$(a.newWindow).attr(title, - This link will open in a new window);
I can't see any add there ?
The proper code would be
$(a.newWindow).attr(title,$(this).attr(title)+ - This link will
open in a new window);
L
Paul Collins wrote:
I'd imagine that CSS is, since it's merely retrieving a value?
offset would need to figure out the left of the parent, the parent's
parent, etc, all the way up to the body, including anything floated /
aligned centre, left or right
L
Milo Raic' wrote:
Anyone know an answer to this
That looks like it's posting twice ?
Any particular reason to do that ?
L
ghost2008 wrote:
Hey guys,
this is amazing. Thanks for your answers.
I implemented the following:
$.ajax({
type: POST,
url: some.php,
data: name=test,
Demo looks good, but I'm getting an error on the download link!
L
Meroe wrote:
I was able to get this working. I'm now integrating with codeigniter
to see how it does there.
On Aug 18, 4:06 pm, Web Specialist especialista...@gmail.com wrote:
Good job. Awesome!
Cheers
Marco Antonio
On
Did you wrap the tab click function in a document.ready, so that the
tabs were there to apply the function to ?
$(document).ready(function() {
$(.tabs).click( function(){
var number = $(this).attr(id);
$(.hiding).hide();
$(#div+ number).show();
Shouldn't it be
http://localhost ?
i.e. http[slash][slash]localhost
L
Alexander Cabezas wrote:
Hi.
When i try to make an ajax request like:
$.get( http:localhost:3001/account/create.json, SignUp.onComplete );
I get the following error in the firebug ( Net ):
OPTIONS - 405 Method Not
Use hoverIntent instead of hover - it's child-friendly in this regard
L
guidebook wrote:
Hello,
(Sorry for my english, it isn't my native language.)
I would want to show a div (the information about the song) when the
visitor hover on a cover art on a radio website but this div overlap
the
do you actually have the headers in a thead, with the content in tbody ?
Most people forget about those.
L
macsig wrote:
Hello guys,
I'd like to know if there is a way to keep a table header fixed on top
of a div while I scroll the table rows.
I have a div high 200px and the table itself is
Try $(this).css({color:#FF});
Matt wrote:
see that code in the subj.? i'm using FF 3.5, and no matter what i
do, .css won't work!! any help?
No virus found in this incoming message.
Checked by AVG - www.avg.com
You say you click the remove link.
What is the code / href of the remove link, and do you have a return
false on the jQuery code to prevent that link being followed ?
$(document).ready(function() {
$(#removeLink).click(function() {
// do whatever the link should do
return false; //
Maybe because 'rel=external' doesn't have any meaning or functionality ?
The proper syntax with functionality would be a target=_blank
href=http://www.google.com;google/a but that's just HTML; it has
nothing to do with jQuery
Liam
Lord Gustavo Miguel Angel wrote:
Hi,
Why this code not
Your old code was :
$('.unselected').click(function(){
$('.selected').attr('class','unselected');
$(this).attr('class','selected');
});
Which translates to if / when unselected is clicked.
Your new code is the exact same principle, replacing the
($('.unselected').click (the trigger)
Try a return false instead of event.preventDefault()
Liam
Pitchwife wrote:
Hello all,
I'm trying to run through the simplest tutorials on jquery and for
some reason I can't get any of the jquery code to work.
I've downloaded jquery and I've made sure that this file is in the
same directory
Normally the hover function will cause the menu div to disappear in this
scenario, as the mouse moves over the child elements.
But if you use the hoverIntent plugin, it'll do the trick for you.
Liam
Mface wrote:
Hi,
I have a CSS menu that I created using div that current appears using
the
You have an unnecessary n in your code.
var test_css = {'background':'#000'};
$(ul li:nth-child(3n)).css(test_css);
should be
$(ul li:nth-child(3)).css(test_css);
Liam
huntspointer2009 wrote:
- Can someone please help me solve the following issue?
- How can I select and apply a
1 - 100 of 105 matches
Mail list logo