I am trying to create a background fade using a transparent png and
altering its position using jQuerys animate function. I've seen this
code around a few times but I can't get it to work. The background
moves to position but is not animated.
I have moved the code into the header so it can be see
Thanks, that's a useful little function and fits my needs. That's much
more simple than I had in mind.
I'm building a site at the moment that uses a flash music player I
don't want to re-load. I have removed the use of frames from their old
site and plan to 'upgrade' the links to AJAX functionality - so the
page isn't re-loading.
I have my HTML structure like this:
Example
And so far I have this
I'm looking for a way to simply count or limit the number of commas
used.
In my form there is a drop down that selects numbers. This needs to
correspond to the amount of tags a user can input - separated by
commas.
The drop down does several other things already so I just need to know
how to cou
"d'oh"
Thank you!
Yes *date* is a stand in, so the code would be:
I'm working on upgrading a calender to AJAX so it is much snappier,
however i'm having trouble getting it to recognise my links.
I have created this function:
function loadContent(id) {
$("#imacalendar").load('inc/eventcalendar.php?event_date='+id);
}
Which is called into use like so:
thank you, it works very well =)
I'm coming along OK, my chained combo box is working brilliantly but
the last one needs to be dynamic.
This is the code I have to power that one:
$("#edcounty").change(function() {
$county = $(this).val();
$("#edinst1").css("display", "block");
if($("#educType").val() == 'unirow') {
I'm quite new to jQuery but forms are proving difficult for me. I'm
trying to make a dynamic select box named 'educType' allow or disallow
two other form fields depending on the selection. I'm pretty sure it
is just the 'if' statement being incorrect syntax but I can't find
examples for it.
Here
I definitely need some more help, I cannot get this if lark to work
out:
$(document).ready(function() {
$("#question").change(function() {
if ($("option:selected") == "good answer") {
$("#box2, "#autocomplete").attr("disabled", this.value ==
'no');
}
});
}
That makes sense, though the code is needed a second time elsewhere
and I think will require an 'if'. The fields are filled from the
database so the other options can be selected. PHP checks whether they
should be disabled or not at first but I need this disabled/enabled
behaviour.
Am I correct i
$("#box2, #autocomplete").attr("disabled", this.value == 'no');
>
> });
>
> -- Josh
>
> - Original Message -
> From: "Hinch" <[EMAIL PROTECTED]>
> To: "jQuery (English)"
> Sent: Monday, June 09, 2008
Oh... I need to add an 'if' statement to it (at least that's how my
mind works after years with PHP!), something like this?
$("#question").change(function() {
if !($("option:selected") == "This") {
$("#box2, #autocomplete").attr("disabled", this.value == 'no');
}
});
Simply I want to ask
I'm fairly new to jQuery and getting on OK but this one baffles me.
I have a form with a select list with three values. One of the values
should do nothing while the other two should enable two other form
fields that have been disabled. The structure is like this:
This
That <-- click this to
15 matches
Mail list logo