Jump to content

AJAX From that onfous input boxes changes div text


cozzy1984

Recommended Posts

 

This sounds like basic javascript; you really don't need ajax to do this, unless you want to get the directions sever side.

 

Well a basic example would be like this:

 

<script language="javascript">
function info(director)
{
document.getElementById('directions').innerHTML = director;
}
</script>

<div id="directions"></div>

<br><br>

First Name: <input type="text" name="FirstName" onfocus="info('Please Enter Your First Name')">

<br><br>

Last Name: <input type="text" name="LastName" onfocus="info('Please Enter Your Last Name')">

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.