Thank you for your quick reply mr.septillion. May be i failed to explain my project exactly.The code you sent is to switch on the light with switch 1 and switch off the light with switch 2. what i need is to switch light with both switches and also switch off with both switches.
That means both switches are in off condition initially. if i switch s1 then light should on. Now s2 is in off condition, if i toggle s2 to on state and then to off state light should off. Now s1 is in on condition, if i toggle s1 to off state and then to on state light should on.
Thanking you,
Raghavendra431.