How to compare string value

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2005
Posts: 1
Reputation: saraguna is an unknown quantity at this point 
Solved Threads: 0
saraguna saraguna is offline Offline
Newbie Poster

How to compare string value

 
0
  #1
Dec 8th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to compare string value

 
0
  #2
Dec 9th, 2005
That's not Java, but JavaScript. Post it in the appropriate forum.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 1
Reputation: Josseling is an unknown quantity at this point 
Solved Threads: 0
Josseling Josseling is offline Offline
Newbie Poster
 
-1
  #3
Oct 23rd, 2009
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...
Last edited by Josseling; Oct 23rd, 2009 at 11:08 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,483
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 515
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster
 
0
  #4
Oct 23rd, 2009
Originally Posted by Josseling View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,678
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 226
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is online now Online
Posting Virtuoso
 
-1
  #5
Oct 24th, 2009
Originally Posted by Josseling View Post
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. Ζήτω η Ελλάς.
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC