heidipiggy
New Member
I have a complicated issue on click(). I am having 4 buttons named as function 1 , function 2, method 1 and method 2.\[code\]<button id="function1"> Function 1</button><button id="function2">Function 2</button><button id="method1">Method 1</button><button id="method2">Method 2</button>\[/code\]When function 1 in clicked and method 1 is clicked i have to trigger a action like this\[code\] $("#function1").click(function(){ $('#method1').click(function(){ $('#section1').html('<img src="http://us.123rf.com/400wm/400/400/myvector/myvector1201/myvector120102079/12127940- vector-illustration-of-single-isolated-airport-icon.jpg"/>'); });});\[/code\]Like this i have four different combinations for function 1 method 1,function 1 method 2,function 2 method 1,function 2 method 2.The problem is when i selected function 1 with any method it works fine. When i select function 2 after selecting the function 1 it changes both values.I want to clear the previous click() and the change must happen only for the selected combination.I have added a BINThanks in advance