Thank you. What's the code if I want the index of the selected item?
On Sep 28, 12:53 am, Alex Weber <[EMAIL PROTECTED]> wrote:
> $('#fruits').val()
>
> On Sep 28, 2:12 am, GARIL <[EMAIL PROTECTED]> wrote:
>
> > How do I use jQuery to determine which item was selected from the
> > forms below?
>
$('#fruits').val()
On Sep 28, 2:12 am, GARIL <[EMAIL PROTECTED]> wrote:
> How do I use jQuery to determine which item was selected from the
> forms below?
> Thank you for the help.
>
>
> Select your favorite fruit:
>
> Apple
> Orange
> Pineapple
> Banana
>
>
>
>
> Select your favorit
How do I use jQuery to determine which item was selected from the
forms below?
Thank you for the help.
Select your favorite fruit:
Apple
Orange
Pineapple
Banana
Select your favorite fruit:
All fruits
Some only...
I think you want an event handler for the input elements. Maybe
something like this? Instead of finding the column in the row above, I
just looked for the Nth price in the row above. That turned out to be
the most complicated part. The DOM defines a .rowIndex property for TR
elements but there is
Hi,
Unfortunately, that's not a whole lot to go on. We really need some code
to look at and preferably a link that lets us see the action.
Rey...
yvonney wrote:
Hi All... Great to be here...
So, I've finally managed to get my some lumbering code I pieced
together to work with FF3.
Doesn't d
Hi,
Firstly, excuse my newbness if I am asking a stupid question.
I have a click function on a list span that scrolls down to the top of
the list to make sure the about to be revealed content is in the
viewport and then shows the content.
My problem is that in Safari, Opera & Chrome, when anoth
Hi All... Great to be here...
So, I've finally managed to get my some lumbering code I pieced
together to work with FF3.
Doesn't do a thing in IE7. I know I'm not giving much to go on though
I would love to hear that other are having similar problems before I
attempt to be clearer. Many thanks fo
the following is the example taked from
"http://docs.jquery.com/Traversing/siblings#expr";
The third li in the first ul does not colored with red in my FF3.0.3 and IE6.0
I supposed this is a bug.
by the way, the style in IE6.0 is ugly
http://www.w3.org/TR/html4/loose.dtd";>
http://code.jquer
> Attach a click event to:
> List item without link
>
> Do not attach click event to:
> Link 1
How about this?
$("li").not($("li:has(a)")).click( ... )
Hmmm. This doesn't seem to relate to jQuery. If this is Zend-related,
your best bet would be the Zend support forum.
Rey...
debussy007 wrote:
Hi,
All my controllers which are located in the default module extends
'MyZend_Default_Controller_Action' which extends
'MyZend_Default_Common_Actio
i have built a simple add/remove chapter form. when "add new chapter"
clicked; ajax get fired, retrieves php file, and appends new chapter. newly
appended chapter is a added to ol#append-chapter. the script also keeps
track of chapter count and displays current chapter count in h4.
issues:
1.
Hello, I want to reduce the header calls for a flash file used
repeatedly on a page. There are 24 HTTP requests for a file that is
already downloaded.. So My question is how would I call it once and
then not again for the rest of the page?
the code area is like this
ex.1)
src: (p.path || '').r
alas, it is very likely a traffic issue. Did you notice one of the
requests that took 17 seconds to complete is from google-
analytics.com ?
On Sep 27, 9:12 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> Something wrong there. Loads in about 5 seconds here, sometimes
> faster. Maybe it's a traffic
Something wrong there. Loads in about 5 seconds here, sometimes
faster. Maybe it's a traffic issue between the USA and Europe?
On Sep 27, 6:36 am, Giovanni Battista Lenoci <[EMAIL PROTECTED]>
wrote:
> ricardobeat ha scritto:> As of no.jquery.comand docs.jquery.com are
> loading faster than
>
append() ==> add inside
after() ==> add after
-
Suppose the following plain HTML:
Content inside div
-
append()
$('#theTags').append(textTag + ' < a href=\"/text/removetag/tagid/' + i +
wounldn't not work here?
$("#LHNav").find("li").not('a').bind("click", function(){
//do something
});
On Sep 27, 1:56 pm, flycast <[EMAIL PROTECTED]> wrote:
> I am stumped. I have nested unordered lists. I want to attach a click
> event to all the list items that do not directly contai
Hi, you can try the .filter(fn) method:
$('#LHNav li').filter(function() {
return !$(this).children('a').length;
}).bind('click', function (){...});
--
Bohdan Ganicky
Hi,
All my controllers which are located in the default module extends
'MyZend_Default_Controller_Action' which extends
'MyZend_Default_Common_Action' which finally extends Zend_Action_Controller
When I do a request for the main page (IndexController/indexAction), the
scripts executes once the
try this plz
$(document).ready(function() {
$('a.view').hover(function() {
$(this).stop().fadeTo ('normal', 1);
}, function () {
$(this).stop().fadeTo ('normal', 0.33);
});
});
eewan wrote:
I'm trying to make script that has faded image at start 30%, after
hover sets opa
dunno if there's a simple jquery way of doing it, but you could do:
$('#LHNav li').each(function(){
if ($('> a',this).length==0) {
//no A href, add it
} else {
//do something else
}
});
flycast wrote:
I am stumped. I have nested unordered lists. I want to attach a click
e
Quickly looking over the jEditable docs, 'editable' isn't an actual event.
You can instead use a function based live query like this:
$('.editable, .bline_measure caption').livequery(function(){
$(this).editable(function(value, settings) { ... });
});
--
Brandon Aaron
On Fri, Sep 26, 2008 at
So it could! Thanks!
On Sep 27, 9:59 am, Scott González <[EMAIL PROTECTED]> wrote:
> That could be easily reduced to this:
>
> $.fn.disable = function() {
> return this.attr('disabled', true).addClass('disabled');
>
> }
>
> $.fn.enable = function() {
> return this.removeClass('disabled')
I am stumped. I have nested unordered lists. I want to attach a click
event to all the list items that do not directly contain an tag.
Attach a click event to:
List item without link
Do not attach click event to:
Link 1
I have this code which attaches the event to both types of tags:
$("#LH
hmm, I just found out that if I use "after" insted of "append", things are
working...
like this:
$('#theTags').after(textTag + ' < a href=\"/text/removetag/tagid/' + i + '\"
id=\"removeTag\" class=\"underline\" >x< /a >');
how to explain that?
/ johannes
--
View this message in context:
http
Hi
I have some problem to re-bind after adding data to a page using append and
a click-function, never used that before!
If I add one "textTag" that one can use the "removeTag" but if I add more
then one "textTag" I get alla the alerts "test" on the first add and the
rest gest none??
Some advi
You'll want to look into the Live Query plugin:
http://plugins.jquery.com/project/livequery/
On Sep 27, 2:55 pm, "silk.odyssey" <[EMAIL PROTECTED]> wrote:
> I am getting started with jQuery and I think I understand the basics.
> I want to get into ajax and while I can communicate with the server
Im trying to integrate a comment system using jquery into my project
but it doesn't work I need some help finding where the error could be:
javascript:
$(document).ready(function() {
jQuery('#newComment').after('');
jQuery('#submit')
I am getting started with jQuery and I think I understand the basics.
I want to get into ajax and while I can communicate with the server I
don't know exactly how to structure my application so that everything
fits together. What happens is that I would try to apply effects to
elements that don't
why dont you do the checks before submit?
Example: Inside submit function...
make sure you got a div to display errors:
var err = jQuery('#error'); //Enter Name');
return false;
} // end if
//then check if email is correct...
if(form.find('#email')
Thank you very much - it worked like charm.
I'll try to understand every step of the way :)
On Sep 27, 7:00 pm, diego valobra <[EMAIL PROTECTED]> wrote:
> Ifixer try this
>
> $('a.view').css('opacity',0.33);
> $('a.view').hover(function() {
> $(this).stop().animate({
> opacity
was my last mail sent?...
On Sep 27, 12:16 pm, Eric C <[EMAIL PROTECTED]> wrote:
> Hello:
>
> I've added some features to Josh Bush's Masked Input plugin, but I
> can't seem to get in touch with him via his website.
>
> I've added a suggested setting, which suggests a character that would
> be
Ifixer try this
$('a.view').css('opacity',0.33);
$('a.view').hover(function() {
$(this).stop().animate({
opacity : 1
}, 600);
},
function(){
$(this).stop().animate({
opacity : 0.33
}, 800);
});
Diego Valobra
--- Sab 27/9/08, eewan <
try this mask plugin:
http://meiocodigo.com/meiomask/docs/
On Sep 27, 12:16 pm, Eric C <[EMAIL PROTECTED]> wrote:
> Hello:
>
> I've added some features to Josh Bush's Masked Input plugin, but I
> can't seem to get in touch with him via his website.
>
> I've added a suggested setting, which sug
On Sep 8, 10:38�pm, Jayzon <[EMAIL PROTECTED]> wrote:
> What I'd like to do: If an input filed is focussed, a price should be
> calculated. To keep the script as efficient as possible, I want to
> travel up from the input field to thecellabove it (i.e. one row up,
> second or thirdcellin that row)
Hi all, is there some way how to control form submittin within succes or
error calback functions within beforeSubmit callback function?
In my my code I validate form data at client side, when form is valid I send
data to server by callback function beforeSubmit.
Server does another validation and
If anyone wants to follow/add to the twitter/identi.ca/blog activity streams
for these events, see here:
jQuery Conference 2008 Activity Stream
http://whoisi.com/e/jquerycon2008
The Ajax Experience 2008 Activity Stream
http://whoisi.com/e/tae2008
If you're at either event, just create an account
So i'm at the hotel bar of the conference's hotel for this weeks
event, i'll be running some items on my blog with pictures and some
talk of tomorrow's jQuery Event and then Mon-Wed's AJAX Experience
Today is just a travel and relax day as I flew up from Florida this
morning and am awaiting my co
No, a hard loop like while(true){} will not do you any good in any browser,
now or in the foreseeable future. I doubt if it will work in Flash or
Sliverlight either.
It doesn't crash your browser, it merely locks it up. After all, it *is* an
infinite loop. Most browsers will eventually put out a
If you used each then it should repeat for each DIV with the class of
box on the page.
$(document).ready(function(){
$("div.box").each(function() {
$("div.box> *").wrapAll('');
$("div.box").append(''+''+''+'');
});
});
What exactly are you trying to achieve though?
I'm trying to make script that has faded image at start 30%, after
hover sets opacity to 100% and on mouse out puts it back to 30%.
so i did this:
$(document).ready(function(){
$('a.view').fadeTo('fast', 0.33);
Hey guys,
I have problem and my programmer isn't around to help me :(
Look at main page:
http://www.mycitysolutions.com/
I used $('a.view').fadeTo('fast', 0.33) to fade out images on load and
$('a.view').mouseover(function () {
$(this).fadeTo('normal', 1);
});
$("a.view").mouseout(function () {
$
Hello:
I've added some features to Josh Bush's Masked Input plugin, but I
can't seem to get in touch with him via his website.
I've added a suggested setting, which suggests a character that would
be used in a character position in the field, e.g.
(".monthNumber").mask("99", {suggested: "0"} )
> function selectTown(country, state, town) {
> $('#country').val(country);
> $('#country').change(); // <- this will load the states in the select
> // once the country has been selected
> // and select element containing states has been populated, then do
>
It should be noted that the portion of the form is
cloned and inserted when a user clicks a link. I think that part of
the problem is that the plugin isn't detecting the value of the file
input even though it is present in the data (seen via the console).
On Sep 27, 11:06 am, Adam <[EMAIL PROTEC
Hi Mike and all
I've read the documentation on uploading a file via the form plugin
and JSON, but I simply can't get it to work. The form plugin dies as
soon as I submit it... no error is thrown, but it posts the whole page
like a normal form and no response is given.
Here's my form code:
http:
> I would have thought that jQuery would repeat the above process if I
> created another div with a class of "box" below the previous one.
I can understand that, since it's the way CSS rules work. If you
declare a CSS rule p.big { font-size: 200% } then any p with class
big will have bigger text
That could be easily reduced to this:
$.fn.disable = function() {
return this.attr('disabled', true).addClass('disabled');
}
$.fn.enable = function() {
return this.removeClass('disabled').attr('disabled', false);
}
On Sep 26, 2:28 pm, livefree75 <[EMAIL PROTECTED]> wrote:
> I actually
Hi, everybody
I have some questions for the "remote" option in asp.net page, If I
have some value need to be verified in order to make it is unique, for
example:
.
.
userName:{
required: true,
remote: "verify.aspx"
}
about the verify.aspx, I don't know how to output the result. I
a
This is the concrete situation for which I cannot find a solution:
I have several 'select' elements which contain information like: country,
state, town.
[...]
[...]
[...]
When a country is selected, I populate all the states of the country in the
state 'select'
by an ajax request, then when a
All, new here and just wondering if anyone would pick up the
challenge ;)
I am a poor coder, I tried but can't figure it out. The thing is that
I implement various jquery stuff in some projects and I feel
comfortable with that. I do not want to mix mootools and jquery
library, so it's all or noth
Hi all,
I'm really excited about jQuery, just as all the rest here. I've found
out that it is really easy to create an animation. However, one day I
stumbled upon the following question: is it possible to run one
animation infinitely (repeat one statement the whole time, in my
case).
Is that even
Next idea, is there some jQuery API to trigger/display an error label
associated with a specific form field?
J.
2008/9/27 Jörn Zaefferer <[EMAIL PROTECTED]>
> Setup ajaxForm with dataType:"json". Then your success-callback will
> get a parsed JavaScript object as the first argument.
>
> $("#myfo
I have found the beforeSubmit(); callback function which will probably works
for me. I would like to within this function call via Ajax the server, pass
form data and process its response.
But, there is one problem with sending data to server, because this piece of
my code sends to server only str
Yes, an example would help a lot.
Jörn
On Sat, Sep 27, 2008 at 12:45 PM, Jeroen Coumans
<[EMAIL PROTECTED]> wrote:
>
> Thanks, I tried that but it doesn't seem to work. Drupal applies the
> classes "required" to required form fields, and they're picked up
> correctly. But any rule I add doesn't w
Whats comes closest to that is the validation plugin:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
You can pass messages to the internal showErrors method:
http://docs.jquery.com/Plugins/Validation/Validator/showErrors
Jörn
On Sat, Sep 27, 2008 at 11:56 AM, Jiří Němec <[EMAIL P
Thanks, I tried that but it doesn't seem to work. Drupal applies the
classes "required" to required form fields, and they're picked up
correctly. But any rule I add doesn't work at all. Even a single rule
to make an extra field required doesn't get picked up.
Would it help if I setup an example o
ricardobeat ha scritto:
As of now www.jquery.com and docs.jquery.com are loading faster than
ever, and I'm in Brazil!
I'm from italy, docs.jquery.com loads in about a minute:
http://lab.gianiaz.com/docs.jquery.com.jpg
--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) -
On Sat, Sep 27, 2008 at 3:35 AM, debussy007 <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> For a lot of asynschronous calls, like the effects, jQuery provides
> completion callbacks which are very useful.
> Unfortunately it doesn't provide completion callbacks for events.
>
> How am I able to know when
Hi,
I use exactly the same code as you mentioned:
$(document).ready(function() {
$('#registration').ajaxForm({
dataType: 'json',
url: '/registration/check/',
success: function(data) {
alert(data);
}
}
);
But I do not want to show labels by h
@Andy, yes there are more resources out there. I don't rely on those
resources so I need to find them. This somewhat distracts my train of
thought at the time when if I mosied on down to the jQuery docs I
would have completed my task a lot quicker, I want to be able to rely
on the jquery resources
On 27 Sep., 01:06, "Dan Baughman" <[EMAIL PROTECTED]> wrote:
> Is looking at the noncompressed code the best way to figure that stuff out
> with out having to ask?
The best way is reading the documentation:
http://docs.jquery.com/UI/Tabs
*But*: In this special case you wouldn't have had luck, be
On Sep 25, 2008, at 1:42 AM, 3apo wrote:
edit_2. and want to toggle between the two edits based upon some
criterion. So if do a
$(this).removeClass('edit_1');
$(this).addClass('edit_2');
This doesnt really propagate thru, and the editable area is still
stuck with edit_1 options.
You need to
On Sep 27, 2008, at 12:24 AM, Wayne wrote:
I was trying to put livequery in place on the site, but it seems to
attach to pre-known events, like click, instead of new events, like
editable.
Brandon would be the correct person to answer this. He knows the
internals on livquery the best.
Hi,
For a lot of asynschronous calls, like the effects, jQuery provides
completion callbacks which are very useful.
Unfortunately it doesn't provide completion callbacks for events.
How am I able to know when an event has been completely processed ?
Once a specific event has been processed, I w
64 matches
Mail list logo