Hi, I'm new to JQuery. I'm having a
<div id='field1'> </div>
I'm referring it twice in my code ..But at each time it refers to the same 1st reference.
Eg .. I'm changing the DIV
content initially with the value
$("#field1").change(function (){alert('hi')});
After some piece of code inside one another click function I'm having
$("#field1").change(function(){alert('again')});
When i want to make use of the second change function with some other content ,the first change function is called How can i dtop the first change not to be called..and only the second one to be called...
But this second one refers to the first one.
How can i rectify this? I've even used $(this)
in my second change.
http://stackoverflow.com/questions/950037/same-ajax-called-twice-jquery
Please suggest me..