Re: [jQuery] Update div content after dynamic select creation

2010-02-03 Thread Nathan Klatt
On Wed, Feb 3, 2010 at 7:12 AM, Shinnuz wrote: > Database works, but if you see div#result doesn't update with "prova3"... > why? where i'm wrong? I do believe your problem is you're creating the nation select AFTER you've set the handler for the select. Move your declaration of $('#sel_nazioni')

[jQuery] Update div content after dynamic select creation

2010-02-03 Thread Shinnuz
I'm trying to create a page where onchange of first select it appears a second one (which values, readen from a database, depend on previous choise) and on choise of second select results are show in a div. Here some images: Start: http://img269.imageshack.us/i/senzanomejg.png/ http://img269.im

Re: [jQuery] update div with textarea length

2009-11-24 Thread Michel Belleville
As long as it's working now kudos. Regards. Michel Belleville 2009/11/24 rjc > > I'm sorry Michel, I edited my last reply because I found the error of it > not > working was on my behalf. > > Michel Belleville wrote: > > > > Maybe the problem is somewhere else then. Strings have a .length whi

Re: [jQuery] update div with textarea length

2009-11-24 Thread rjc
I'm sorry Michel, I edited my last reply because I found the error of it not working was on my behalf. Michel Belleville wrote: > > Maybe the problem is somewhere else then. Strings have a .length which is > the number of characters in them, .val() gets the value of the first > element > selecte

Re: [jQuery] update div with textarea length

2009-11-24 Thread Michel Belleville
Maybe the problem is somewhere else then. Strings have a .length which is the number of characters in them, .val() gets the value of the first element selected (input, texarea, select, etc.) and $(this) should only point to your textarea when it's responding to the keyup event. Could you show the u

Re: [jQuery] update div with textarea length

2009-11-24 Thread rjc
I would have never thought to use val(), but this solution unfortunately did not work The value still remains as 1 ? -- View this message in context: http://old.nabble.com/update-div-with-textarea-length-tp26492474s27240p26492632.html Sent from the jQuery General Discussion mailing list archive

Re: [jQuery] update div with textarea length

2009-11-24 Thread Michel Belleville
Little confusion here indeed : jQuery wraps selected elements in a "magic array" that keep them warm and ready to respond to any jQuery method, so when you query $(this).length you're asking for jQuery's "magic array"'s length, which is 1 (1 element inside). If you want to get the length of the st

[jQuery] update div with textarea length

2009-11-24 Thread rjc
Hi, i'm updating a div with the length of a textarea. $().ready(function(){ $("#formElement_profileTeamProfile").keyup(function() { var newText = $(this).length; $('#countCharTeamProfile').html(newText); }); }); Every time i ent

[jQuery] Update Div after ajax submit

2009-09-23 Thread Dave Maharaj :: WidePixels.com
I am using the jquery.form.js script and submit a form just fine. My Question is how can update an additional div after the form is sumbitted. Example title here => might say something like Edit you Green Earth Post Page content code. form. So the form loads in , submit and f

[jQuery] Update DIV

2009-03-11 Thread so.phis.ti.kat
Hello Everyone, I am looking to see if I should switch to jQuery but first need to find jQuery's equivalent to Prototype JS's Ajax.Updater; new Ajax.Updater("id", url, {method: 'post', parameters: pars}); Ajax.Updater allows you to simply update the content of a DIV. ps. I did find his plugin

[jQuery] Update div works in IE but not in FF?

2008-11-17 Thread [EMAIL PROTECTED]
Hi all, i wanted to update a div, depending on a click in my menu. I get both alert test-messages in both browserswith the right text, but AFTER the second alert in Firefox it goes wrong. The original content dissapears, but Instead of placing the new content, inside my content div, the original c

[jQuery] Update div

2007-09-19 Thread David
How update multiple div by ajax from php?