Nevermind, I am an idiot. I got it.
On Jan 30, 8:13 pm, Hamish Campbell [EMAIL PROTECTED] wrote:
Whenever you create new selects you will need to bind the click event
to the new selects.
On Jan 31, 11:51 am, RyanMC [EMAIL PROTECTED] wrote:
$(select).change(function(){
alert(Selected
How would I go about doing that?
On Jan 30, 8:13 pm, Hamish Campbell [EMAIL PROTECTED] wrote:
Whenever you create new selects you will need to bind the click event
to the new selects.
On Jan 31, 11:51 am, RyanMC [EMAIL PROTECTED] wrote:
$(select).change(function(){
alert(Selected
- Original Message -
From: RyanMC [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Tuesday, January 29, 2008 3:38 PM
Subject: [jQuery] Manipulation of select objects
I am working on a site where various dynamic content will be created
each session
-
From: RyanMC [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Tuesday, January 29, 2008 3:38 PM
Subject: [jQuery] Manipulation of select objects
I am working on a site where various dynamic content will be created
each session. There will end up being between 1
:
Basically you can do this:
$('select').each(function() {
$(this).doWhatever() // will run the method doWhatever on the currently
iterating select
});
-- Josh
- Original Message -
From: RyanMC [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Tuesday
$(select).change(function(){
alert(Selected: + this.value);
});
Is there any reason why this wouldn't be working on all the selects on
my page.
I create the selects dynamically, but this is up in the $
(document).ready(function() { block of my code.
I am working on a site where various dynamic content will be created
each session. There will end up being between 1 and a very large
number of select boxes on the page. Users are able to add items that
need to be inserted into each select box. I found a plugin that allows
me to addOption and
7 matches
Mail list logo