• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript question

 
Harish Maridi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have four drop down menus.
Hour1
Minute1
Hour2
Minute2

I attched listners to each of the dropdown menu.

Then I wrote a javascript :

This will totally returns 4 values,
I need to cancat Fromhour and Fromminute to make "Fromtime"
and TOhour and To minute to make "Totime"

After that I need to compare Fromtime and Totime to validate the timings.

My Question is: How do I do the cancat operation.
Thanks in Advance
[ June 09, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


"listner", even if spelled correctly, is not a valid attribute of the <select> element. Is this really the code you are trying to use?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Question is: How do I do the cancat operation.
Strings are concatenated with the + operator.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

This whole forum is devoted to JavaScript questions so a title of "Javascript question" isn;t v ery helpful is it?

You can go back and change your post to add a more meaningful subject by clicking the .
 
Harish Maridi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to post with the exact code but I am unable to do it.

actually in place of listner I used onblur.
I know about the cancatanation process, but how to get the values that returned by the functions.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mark watson:
I tried to post with the exact code but I am unable to do it.
The FAQ has an entry that explains how to post code.

I know about the cancatanation process, but how to get the values that returned by the functions.
Regardless of how the values are obtained, the + operator would still be used.

For example:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic