Thread: Ajax
View Single Post
  #10  
Old 05-04-2009, 06:07 PM
welcomewiki welcomewiki is offline
Member
 
Join Date: Dec 2008
Location: India
Posts: 80,542
The HTML Form

This is the HTML page. It contains a simple HTML form and a link to a javascript:








First Name:
onkeyup="showHint(this.value)">

Suggestions:





Example Explained - The HTML Form

As you can see, the HTML page above contains a simple HTML form with an input field called "txt1".
The form works like this:
  1. An event is triggered when the user presses, and releases a key in the input field
  2. When the event is triggered, a function called showHint() is executed.
  3. Below the form is a called "txtHint". This is used as a placeholder for the return data of the showHint() function.
Reply With Quote