Click here to Skip to main content
15,902,911 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
I have two drop-downs and one text box. I want to display multiplication of selected values from both the drop-downs.

I am trying to use change() function in jQuery. However change function is not firing. Even If i tried normal alert with it nothing happens.


C#
$('#container select').change(function () {
             alert(this).html();
        });


I am using IE6 and jquery-1.4.1.min.js
Posted
Updated 3-Jun-18 21:07pm

i don't know whether this works:
JavaScript
alert(this).html()

i mean check first simple alert such as:
JavaScript
alert('hello');

if it works then fine , otherwise
try:
JavaScript
$('#controlId').live('change', function (e) {
alert('Hello');
        });
});
 
Share this answer
 
v5
Comments
tejashri.gandhi 15-Mar-12 6:19am    
Thank you so much...it worked..
member60 15-Mar-12 6:48am    
fine!
I am expecting that container select is the id of the dropdown in your code.

If it is so then remove the space between container and select and then try once
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900