|
| |
|
|
chadb
Posts: 501 From: Kansas Status: offline
|
Java questions - 8/13/2009 11:55:06
Can I put 2 onclick statements in? I can't seen to get this to work <input type="radio" onclick="makeEnable()" onclick="chgtxEnable()" value="V3" name="R1"> Thanks Cahd
|
|
|
|
swoosh
Posts: 1535 Joined: 5/18/2002 From: Beaver Falls, PA Status: offline
|
RE: Java questions - 8/13/2009 14:27:24
quote:
onclick="makeEnable()" onclick="chgtxEnable()" I believe you can have them both but under one ONCLICK. Just separate them with a semi colon onclick="makeEnable();chgtxEnable()"
_____________________________
Swoooosh Just Do It!
|
|
|
|
chadb
Posts: 501 From: Kansas Status: offline
|
RE: Java questions - 8/13/2009 15:11:56
OK Thanks, but now I have 2 java functions on one text box, Is there a way to have 1 trump the other? Here is the code. What is does is if someone clicks the text box, it brings up a calendar, but I also have a radio button that is I select I want the date2 box disabled. Here is that function: <input type="radio" onclick="makeEnable();chgtxDisable()" value="V3" name="R1"> <input onclick="ds_sh(this);" name="date2" readonly="readonly" style="cursor: text" size="20" /> </td>
|
|
|
|
swoosh
Posts: 1535 Joined: 5/18/2002 From: Beaver Falls, PA Status: offline
|
RE: Java questions - 8/14/2009 9:27:03
quote:
I have 2 java functions on one text box, Is there a way to have 1 trump the other? Wouldn't it be better served as one function with an IF STATEMENT?
_____________________________
Swoooosh Just Do It!
|
|
|
|
chadb
Posts: 501 From: Kansas Status: offline
|
RE: Java questions - 8/14/2009 9:31:51
Sounds good to me, the only issue is I am very new to javascript. Can you provide an example of the correct way to use a if statement?
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|