In c# we have IsPostBack
that we use to validate if is or isn't a postback.
if (!IsPostBack)
{
// Validate initially to force asterisks
// to appear before the first roundtrip.
Validate();
}
There is a javascript/jQuery equivalent?
Note that
I don't wanna a solution using any other language than javascript (not excluding html, since it is not a programming language). Those questions below show how to do it using c#, I don't wanna that!. I want a solution in javascript (or jQuery) ONLY.