If i have 2 fields and i want the user to enter some details in the first field, but after they enter the details in the first field, i want the second field to automatically default to show "TEST", and not be able to write in this field....how do i do it?

<html>
   <table width=75% border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="left" width="15%">Company name</td>
      <td align="left"><input type="text" size="40"  name="company_name"></td>
      <td align="left" width="15%">Client ID</td>
      <td align="left"><input type="text" size="10" name="client_id"></td>
     </tr>
</html>

This is my code

Research the "enabled" and "readonly" attributes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.