469,319 Members | 2,433 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

anyone good with java script-toggle text on input button

Hi I need to toggle the text on an html input button in a .net web application.
the name of the button is btn_hide and I do have an onclick function for it.

<script language="javascript" type="text/javascript">
// <!CDATA[

function btn_hide_onclick()
{

}

// ]]>
</script>
--
thanks,
Paul G
Software engineer.
Mar 28 '08 #1
3 1439
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:8E**********************************@microsof t.com...
<script language="javascript" type="text/javascript">
Firstly, get rid of the language tag, as that's deprecated syntax...
Hi I need to toggle the text on an html input button in a .net web
application.
Toggle? From what to what? I.e. what precisely do you want to happen when a
user clicks the button...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mar 28 '08 #2
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:39**********************************@microsof t.com...
just wanted the text to change back and forth each time the user clicks on
it
OK, but change from what to what...?
Should the <script language="javascript" type="text/javascript"be
removed?
No. As I said, the language tag should be removed as it is deprecated:
http://www.google.co.uk/search?sourc...ipt+deprecated
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mar 28 '08 #3
ok thanks I removed the language tag. I am changing the value of the button
from hide to expand as I am collapsing and expanding a panel.

--
Paul G
Software engineer.
"Mark Rae [MVP]" wrote:
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:39**********************************@microsof t.com...
just wanted the text to change back and forth each time the user clicks on
it

OK, but change from what to what...?
Should the <script language="javascript" type="text/javascript"be
removed?

No. As I said, the language tag should be removed as it is deprecated:
http://www.google.co.uk/search?sourc...ipt+deprecated
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Mar 31 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Andy R. | last post: by
10 posts views Thread by Dr. Mercury | last post: by
2 posts views Thread by enclume42 | last post: by
reply views Thread by Mircea Pleteriu | last post: by
5 posts views Thread by Simon Egginton | last post: by
169 posts views Thread by JohnQ | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.