pankaj semwal wrote:
This my java script code.But this code show only document.getElementById(id).value =SP;
value in my jsp page.After that it does not check other conditions.
That's normal for if-else statements. Once the
test value in an if-clause is true, then its associated statement (in your case document.getElementById(id).value =SP) is executed and the else-clause is not executed. Since those "other conditions" are in the else-clause, they don't get executed.