0
function validate1(){
        if(document.all.doc1.value == ""){
        alert('Please select 1st Docoment !!');

document.all.doc1.focus();
document.all.doc2.value = "";
        }
        var doc1 = eval(document.all.doc1.value);
        var doc2 = eval(document.all.doc2.value);

        if(doc2 < doc1){
alert('First Document number must greater than secondnd Document number!!');
document.all.doc1.focus();
document.all.doc2.value = "";
}

the script above used to compare string between combo box it can compare integer value but can't compare string value
please help soon

Edited by happygeek: fixed formatting

5
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by javaAddict
-1

Para que se usa el string.value, ayudenme a crear una clase cuenta. Manda a pedir si quieres crear una cuenta de ahorro o una de credito...

Edited by Josseling: n/a

0

Para que se usa el string.value, ayudenme a crear una clase cuenta. Manda a pedir si quieres crear una cuenta de ahorro o una de credito...

Éste es cuatro años.

Read the forum rules regarding posting in English please.

-1

Para que se usa el string.value, ayudenme a crear una clase cuenta. Manda a pedir si quieres crear una cuenta de ahorro o una de credito...

Αυτό το thread είναι από το 2005. Αν έχεις να κάτι να πεις πόσταρε στα Αγγλικά.

Do you see how frustrating it is that I used my mother language?
> This thread is from 2005. If you have something to post, do it in English.
By the way the above is Greek. Ζήτω η Ελλάς. :)

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.