I have two buttons one for submitt and another for clear all text box ,both are on same form.Here I am using a java script function on form submitt and another script for clear text boxes,Now problem is that when I press clear button ,form get submitted first before calling that clear function.
I want to call function that will be based on button click.
waiting for your reply.
Java script problem (Its urgent)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

He Man8 reputationPosted Jan 5, 2006, 11:11 PM EST
cmdClear.attributes.Add("OnClick","javascript:Clearmethodofjavascript();")
hope this would work
shah ali4 reputationPosted Jan 6, 2006, 12:24 AM EST