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

That's not Java, but JavaScript. Post it in the appropriate forum.

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...

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.

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. Ζήτω η Ελλάς. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.