Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. dialog box on if condition

dialog box on if condition

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ships_agr
    wrote on last edited by
    #1

    i want to compare the value of two text boxes and on true/false condition i want to display the message in a dialog box.....can any one help me with the coding in javascript????

    N 1 Reply Last reply
    0
    • S ships_agr

      i want to compare the value of two text boxes and on true/false condition i want to display the message in a dialog box.....can any one help me with the coding in javascript????

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      if(document.GetElementById("txt1").value == document.GetElementById("txt1").value)
      {
      alert("Some message");
      }
      else
      {
      alert("Some message");
      }

      What's so difficult?


      I know the language. I've read a book. - _Madmatt

      T S 2 Replies Last reply
      0
      • N Not Active

        if(document.GetElementById("txt1").value == document.GetElementById("txt1").value)
        {
        alert("Some message");
        }
        else
        {
        alert("Some message");
        }

        What's so difficult?


        I know the language. I've read a book. - _Madmatt

        T Offline
        T Offline
        T M Gray
        wrote on last edited by
        #3

        Mark Nischalke wrote:

        What's so difficult?

        Using the correct operator? :)

        N 1 Reply Last reply
        0
        • T T M Gray

          Mark Nischalke wrote:

          What's so difficult?

          Using the correct operator? :)

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Guess the syntax validator addin stopped working. :-O


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          • N Not Active

            if(document.GetElementById("txt1").value == document.GetElementById("txt1").value)
            {
            alert("Some message");
            }
            else
            {
            alert("Some message");
            }

            What's so difficult?


            I know the language. I've read a book. - _Madmatt

            S Offline
            S Offline
            ships_agr
            wrote on last edited by
            #5

            thanks a lot.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups