Php & ajax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bandula111
    New Member
    • Feb 2012
    • 3

    Php & ajax

    how to set setfocus commnd with textboxes in php with Ajax
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You don't do set focus in PHP, you do it in javascript.

    Comment

    • bandula111
      New Member
      • Feb 2012
      • 3

      #3
      Then, how to do the same action of set focus in javascript with php or php/Ajax?

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        You don't use PHP. You just use javascript. In javascript, you just call the .focus method on the form element you want to set focus to.
        Code:
        document.getElementById("someTextbox").focus()

        Comment

        • bandula111
          New Member
          • Feb 2012
          • 3

          #5
          Originally posted by Rabbit
          You don't use PHP. You just use javascript. In javascript, you just call the .focus method on the form element you want to set focus to.
          Code:
          document.getElementById("someTextbox").focus()
          Thanks for yur information. I will try it and inform you later
          Bandula

          Comment

          Working...