[jQuery] append return onto text value

2010-01-19 Thread Benn
How do I append a hard return onto a text value box so that it causes it to submit the form?

[jQuery] Re: Submission of a form creates popin

2009-12-12 Thread Benn
$('#form_submit').attr("href",'iframe.html?a=' + lsAction + '&ccc=' + lsCCCvariable).click(); }); $("a[rel^='prettyPopin']").prettyPopin({}); }); not the most elegant solution: any suggestions? On Dec 11, 1:26 pm, Benn

[jQuery] Re: Submission of a form creates popin

2009-12-11 Thread Benn
I'd also be open to trying non-plugins On Dec 11, 1:26 pm, Benn wrote: > This should be a simple matter: I'm using a plugin, prettyPopin. and I > want a form to submit to it (activate it). How do I get prettyPopin to > activate on form submit!

[jQuery] Submission of a form creates popin

2009-12-11 Thread Benn
This should be a simple matter: I'm using a plugin, prettyPopin. and I want a form to submit to it (activate it). How do I get prettyPopin to activate on form submit!

[jQuery] Re: get values from a select menu then assign them to an array variable

2009-09-08 Thread Benn
i is the count for the each statement making a key for the array: for example the first dropdown option would have an array key/value pairing of '0','com1' On Sep 8, 2:06 am, runrunforest wrote: > Owsome Benn. But i don't understand why "i" is used there ?

[jQuery] Re: get values from a select menu then assign them to an array variable

2009-09-08 Thread Benn
var laArray = new Array(); $(document).ready(function(){ $(".cat2 option").each(function(i){ laArray[i] = $(this).val(); }) alert(laArray) }) On Sep 7, 11:20 pm, runrunforest wrote: > Hi, > > I have a menu like this: > >     >         vaio >         think

[jQuery] put the value of an xml file in an array

2009-09-08 Thread Benn
my goal is to put a bunch of SKUs contained in an xml file into an array, but the value is not being set so that it can be used later in the jQuery.get. I have html like this: Foo Bar Bar Foo I have an xml file constructed like this: foo123 Foo Bar bar123 Bar foo321 Foo and jquery

[jQuery] list insert out of order

2009-08-18 Thread Benn
IE7/8 and Safari, but not FF are showing dropdown menu items out of alphabetical order when they're pulled in to a separate div, does anybody have any hints as to how it could be put into order Here's the current HTML: btext 1 atext 2 ctext 3 Here's the current J

[jQuery] Re: Change the contents of a div after it has been created

2009-08-14 Thread Benn
I tried changing the HTML/Javascript to this: $("#select option").each(function(){ var value = $(this).html(); $(this).addClass(value); $('.foo').append(''); }); $('.foo a img').click(function(event){ event.preventDefault(); var fAlt = $('.foo a img').attr('alt'); $('.fooA

[jQuery] Re: Change the contents of a div after it has been created

2009-08-14 Thread Benn
missed a line, the JS should be: $('.foo').append(''); $('.foo a img').click(function(event){ event.preventDefault(); var fAlt = $('.foo').attr('alt'); $('.fooAlt').text(fAlt) }) On Aug 14, 2:30 pm, Benn wrote: > I

[jQuery] Change the contents of a div after it has been created

2009-08-14 Thread Benn
I'm trying (rather unsuccessfully) to fill a div that was created by jquery. I feel like the code should work: any hints or solutions? Here's my html: Here's my javascript: $(document).ready(function(){ $('.foo').append(''); $('.foo a img').click(function(event){ event.preven

[jQuery] Re: Select Option add Class

2009-08-10 Thread Benn
this worked great! thank you muchly! On Aug 10, 11:19 am, Eduardo Pinzon wrote: > try this: > $("#custom1 option").each(function(){ >       var class = $(this).html(); >       addClass(class); > > }); > > Eduardo Pinzon > Web Developer > > 2009/8/10 Be

[jQuery] Select Option add Class

2009-08-10 Thread Benn
This might have been resolved, but I can't find a solution with my search. I'm trying to add a class with the text of the option. Simple to do the selected option, but not all of them it seems. I want to change: Text 1 Text 2 Text 3 to: Text 1 Text 2 Text 3 I have tried $('#selectList :

[jQuery] manipulate the next element with a class

2009-07-15 Thread Benn
Is there a non-structure specific way of finding the next element with a given class? for example you have a structure of: link asdf link ghjl link qwer When you click on the link in container1 the expected behavior is to change the css on a1 in container2 but not in containe