Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to add textbox beside to link when i click the link
Posted

1 solution

Try something like this.

<script language="javascript">
       function CreateInput() {
           var container = document.getElementById("txtContainer");
           container.innerHTML = "<input type='text'/>";

       }
   </script>
      <a onclick="CreateInput();" href="#">Create Textbox</a>
      <div id="txtContainer"></div>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900