anyone good with java script-toggle text on input button

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UGF1bA==?=

    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="javas cript" type="text/javascript">
    // <!CDATA[

    function btn_hide_onclic k()
    {

    }

    // ]]>
    </script>
    --
    thanks,
    Paul G
    Software engineer.
  • Mark Rae [MVP]

    #2
    Re: anyone good with java script-toggle text on input button

    "Paul" <Paul@discussio ns.microsoft.co mwrote in message
    news:8E32B773-9212-4842-A3ED-B51700B76339@mi crosoft.com...
    <script language="javas cript" 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


    Comment

    • Mark Rae [MVP]

      #3
      Re: anyone good with java script-toggle text on input button

      "Paul" <Paul@discussio ns.microsoft.co mwrote in message
      news:396CA50C-7FE9-429B-9078-E36BC550810A@mi crosoft.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="javas cript" type="text/javascript"be
      removed?
      No. As I said, the language tag should be removed as it is deprecated:



      --
      Mark Rae
      ASP.NET MVP


      Comment

      • =?Utf-8?B?UGF1bA==?=

        #4
        Re: anyone good with java script-toggle text on input button

        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" <Paul@discussio ns.microsoft.co mwrote in message
        news:396CA50C-7FE9-429B-9078-E36BC550810A@mi crosoft.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="javas cript" type="text/javascript"be
        removed?
        >
        No. As I said, the language tag should be removed as it is deprecated:

        >
        >
        --
        Mark Rae
        ASP.NET MVP

        >
        >

        Comment

        Working...