Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Set Focus on Textbox using Javascript

use this code if (document.getElementById("Textbox1").value == "") { alert("Invalid date"); document.getElementById('Textbox1').value = '__/__/____'; ...



Compare Revision Minor Date Status Editor
publicly available No 6-Jun-11 2:36 Available Ramalinga Koushik
3 No 6-Jun-11 2:35 Composing Ramalinga Koushik
2 No 6-Jun-11 2:34 Composing Ramalinga Koushik
1 No 6-Jun-11 2:33 Composing Ramalinga Koushik


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

About the Author

| Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 6 Jun 2011
Article Copyright 2011 by Ramalinga Koushik
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid