REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
JavaScript Forum
You are currently viewing our JavaScript Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
JavaScript Forum
>
Basic IF statement...
Link Back
Thread Tools
Search this Thread
Basic IF statement...
06-05-2010, 01:51 PM
#
1
(
permalink
)
Basic IF statement...
lynxus
Awesomeo-Maximo
Latest Blog Post:
IMsupporting Foresight ( Sneak peek ) – Live...
Posts: 1,618
Location: UK
Trades:
1
Talkupation:
Hi guys, My JS sucks so i have a question..
I have a textbox called "msg"
How ( in an if statement )
Can i check teh value of the textbox, and IF it = "1" i want to call another JS function..
Something like..
if (document.msg.value == "1") {
doSomethingelse()'
}
I cant seem to figure it out..
Ty for ya help.
_G
__________________
█
█
Please login or register to view this content.
Registration is FREE
●
Please login or register to view this content.
Registration is FREE
█
█
Please login or register to view this content.
Registration is FREE
●
Please login or register to view this content.
Registration is FREE
Register
now for full access!
06-05-2010, 01:59 PM
#
2
(
permalink
)
Re: Basic IF statement...
chrishirst
Missing! presumed drunk.
Latest Blog Post:
A Simple DHTML Tabbed Interface
Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades:
0
Talkupation:
Code:
if(document.formname.msg.value =='1') { dosomething(); } else { DoSomethingDifferent(); }
__________________
Chris. ->>
Please login or register to view this content.
Registration is FREE
<<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
06-05-2010, 02:06 PM
#
3
(
permalink
)
Re: Basic IF statement...
lynxus
Awesomeo-Maximo
Latest Blog Post:
IMsupporting Foresight ( Sneak peek ) – Live...
Posts: 1,618
Location: UK
Trades:
1
Talkupation:
Thanks man.
-G
__________________
█
█
Please login or register to view this content.
Registration is FREE
●
Please login or register to view this content.
Registration is FREE
█
█
Please login or register to view this content.
Registration is FREE
●
Please login or register to view this content.
Registration is FREE
06-11-2010, 09:52 PM
#
4
(
permalink
)
Re: Basic IF statement...
zxcvbnm0453
Banned
Posts: 4
Name: lili
Trades:
0
Talkupation:
Great content and very helpful thank and keep up the good work.
06-14-2010, 03:40 AM
#
5
(
permalink
)
Re: Basic IF statement...
xyghnben2
Banned
Posts: 1
Name: lily
Trades:
0
Talkupation:
Is really very good, did not need saying that thanked shares
« Reply to
Basic IF statement...
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
JavaScript Forum
>
Basic IF statement...
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.14421
seconds with
12
queries