Home Answers Viewqa HTML textfield should not allow the user to fill the date in it.

 
 


suresh anugandula
textfield should not allow the user to fill the date in it.
1 Answer(s)      2 years ago
Posted in : HTML

I got a requirement like this,

I am dislaying a text field along with a calendar. Here user should not fill the date inside the text field manually. If he tries to fill the date manually, i have to display some message like "please click on calendar object".

View Answers

May 19, 2011 at 1:28 PM


Try this:

<html>
<script>
function getValue(){
var v=window.prompt("Enter your name: ");
document.getElementById("cal").value=v;
}
function valid(){
alert('Click the button');
document.getElementById("cal").value="";
}
</script>
<input type="text" id="cal" onkeydown="valid();"><input type="button" value="popup" onclick="getValue();">
</html>









Related Pages:
textfield should not allow the user to fill the date in it.
textfield should not allow the user to fill the date in it.  I got.... Here user should not fill the date inside the text field manually. If he tries to fill the date manually, i have to display some message like "please click
Allow to Enter only numeric data.
Allow to Enter only numeric data.  hi....... I want to ask that in my project i have a textfield where user is going to enter the data so i want that the user should allow to enter only numeric data. I mean to say that if user
Restricting the user from filling the data in a textfield using html
Restricting the user from filling the data in a textfield using html  I got a requirement like this, If the user is trying to fill a text field, i have to restrict him
Non-edit Combobox with auto fill - Swing AWT
-editable mode of JCombobox, For ex: If user type "Ch" JCombobox should select "Charls", If user type "Chi", JCombobox should select "Chim". I tried to catch... characters typed by the user for auto fill for JCombobox in non-editable mode
Simple Java applet that need usernam, password and textfield.
that require user to login by username and password. After login, they should meet a textfield box. Anything that been input to that textbox will be transfer to DB2...Simple Java applet that need usernam, password and textfield.  Hi
TextField validations
TextField validations  I want to know How to check first letter... textfield? and also want to know how to check all digits or not in a textfield? ex... character should start with capital letter!","Error!", JOptionPane.ERROR_MESSAGE
how to allow table editing
how to allow table editing   1**. hi... l've tried the method isCellEditable(int rowIndex, int colIndex) { return true but it doesn't enabled the user the editing of any cell why????????????? regards
Java: Example - Drawing a Face - v5 - Fill-in
Java: Example - Drawing a Face - v5 - Fill-in Main - Setting the instance...: face/file2/PacLadyApplication.java // Author: Fred Swartz, Date: July 1998 ... Oct 2004.... int eyeSize = getInt("How big should the eye
Fill-in: Hammurabi I
Java NotesFill-in: Hammurabi I Name ______________________________ Fill in the blanks in these programs. Each blank represents ONE keyword, variable...) + " bushels should be planted?"); int seeds = Integer
Java textfield validaton
Java textfield validaton  Sir... i'm new to java. In java JTextfield when we entered a negative value after pressing one button it have to display an error message dialog of textfield and also the textfield should accept
Java textfield validaton
Java textfield validaton  Sir... i'm new to java. In java JTextfield when we entered a negative value after pressing one button it have to display an error message dialog of textfield and also the textfield should accept
how to prevent user selecting past date from calender
how to prevent user selecting past date from calender  how to prevent user selecting past date from calender ex: today's date is 21st march user should not select 20th march or below
How to build calander - Date Calendar
How to build calander  My requirement is When user is registering he should enter his DOB just by selecting the date month and year for that i...; } html += xTR;   // add a button to allow the user to easily return
how to fill up a form automaically from database and print it
)should automatically fill up in the form and on cliking print button it shoulg give...how to fill up a form automaically from database and print it  sir,i... is a jsp code where user is allowed to enter any id and display the corresponding
Date limit on Dojo Date picker - Date Calendar
to 30/04/2009, then user should not select date beyond this limit. I can do... want this validation on dojo date picker only. User should not select date... picker in my project. When user click on date text box, date picker will pop up
Fill-in Questions: Hammurabi
Java Notes Fill-in Questions: Hammurabi Name ______________________________________ Fill in the underlined areas with ONE appropriate keyword... " + maxSeed + " bushels should be used?"; int seeds = getInt(message, 0
date
date  can u tell me how to calculate difference between a user provided date and the system date in java
date
date  can u tell me how to calculate difference between a user provided date and the system date in java
SQL database parameters should save at where?
parameters to the file and read using JAVA I/O and allow user to edit the file, if there is a database changed (hostname, username or password) It should...SQL database parameters should save at where?  Hi, Currently
default password Allow the user to see the typed alphanumeric or character before it is changed to an encrypted dot
default password Allow the user to see the typed alphanumeric or character before it is changed to an encrypted dot  Allow the user to see the typed alphanumeric or character before it is changed to an encrypted dot in xsl n
how to move pointer in Textfield to newline
how to move pointer in Textfield to newline  consider my case...; class Table1 extends Frame implements ActionListener{ TextField tf1,tf2,tf3..."); l2.setBounds(100,50,200,20); tf1=new TextField(); tf1.setBounds(100,80,200,20
fill out forms on web pages - JDBC
fill out forms on web pages    I want to fill out forms on web... www.blauh...com , in which there wil be a form , what i hav to do is to fill that form... to the id that has been entered by the user. 1)id.jsp: Enter ID
USER DEFINED CLASS
USER DEFINED CLASS  hi please help me with my project: Exercise # 1... named month, day, and year should be private members so that they cannot... named good should be a public member so that it can be accessed outside
validationrule for date as format yyyy-mm-dd in drools
validationrule for date as format yyyy-mm-dd in drools  Please give idea about this one..I have two textfield. User can select the date from...: rule "Stamping Out Of Service Start date should be valid date" dialect "mvel
autocompletion in textfield fetching from database in jsp
i caant able to select particular name to textfield... it should be in jsp...autocompletion in textfield fetching from database in jsp  hi i want to retrieve country name from mysql db to textfield.. maeans if anyone type
Jdialog box with textfield - Java Beginners
Jdialog box with textfield  i have to create a dialog box with 2 textFields(to take input from user) and 2 JLabels. how to do that please tell.thanks  Hi Friend, Try the following code: import javax.swing.
Date and Time - Swing AWT
Date and Time  the following program is developed in swings ..... the main objective of this program is to 1> get a date from user 2> retrieve the current date from the system 3> hence find out the difference
Validate textfield in Java Swing
Validate Jtextfield in Java Swing In this section,you will learn how to validate the textfield by allowing only numbers to enter. For this purpose, we have... allowed the user to enter only numeric digits from 0 to 9.If the user enters
Updating user profile
Updating user profile  how should i provide user to update his profile with edit option including entered data by user should be shown in jsp page... in another page and allow the user to update the record. 1)application.jsp: <
should close the browser with user confirmation in javascript - Java Beginners
should close the browser with user confirmation in javascript  Hi, I need to close the browser with the user confirmation. If the user accept olny he/she can close the browser otherwise can't close the browser. How can I do
JQuery date change event
users to choose from start & end date. But i want is .. if a user is choosing any specific start date then end date should automatically get change by adding...JQuery date change event  JQuery date change event I have been
Not able to filter rows of jtable with textfield in netbeans
Not able to filter rows of jtable with textfield in netbeans  ...]; String date = null; for (int i = 0; i &lt; alstStock.size(); i...(); SimpleDateFormat df = new SimpleDateFormat("EEEE, MMM d,yyyy"); date
Not able to filter rows of jtable with textfield in netbeans
Not able to filter rows of jtable with textfield in netbeans  ...]; String date = null; for (int i = 0; i &lt; alstStock.size(); i...(); SimpleDateFormat df = new SimpleDateFormat("EEEE, MMM d,yyyy"); date
how to fill up a form automaically from database and print it
)should automatically fill up in the form and on cliking print button it shoulg give...how to fill up a form automaically from database and print it  sir,i am designing a medical license website.i need to fillup a license form
how to fill up a form automaically from database and print it
)should automatically fill up in the form and on cliking print button it shoulg give...how to fill up a form automaically from database and print it  sir,i am designing a medical license website.i need to fillup a license form
how to fill up a form automaically from database and print it
)should automatically fill up in the form and on cliking print button it shoulg give...how to fill up a form automaically from database and print it  sir,i am designing a medical license website.i need to fillup a license form
how to fill up a form automaically from database and print it
)should automatically fill up in the form and on cliking print button it shoulg give...how to fill up a form automaically from database and print it  sir,i am designing a medical license website.i need to fillup a license form
how to fill up a form automaically from database and print it
)should automatically fill up in the form and on cliking print button it shoulg give...how to fill up a form automaically from database and print it  sir,i am designing a medical license website.i need to fillup a license form
Date - Swing AWT
Date   sir i have one JSpinner and a textfield that will display the current month and year next to that there is another a Textfield for Date... date,year,month should not be less than current. 2.i want to store these date
vaidate a date from datepicker in javasript
vaidate a date from datepicker in javasript  validation should be the user should be alerted wen a future date is selected..validation can be done in javascript or jsp itself
Fill in the blanks.
Fill in the blanks.   Fill in the blanks. 1 ___operator is used to crate an array. 2 ___method can be called without the instance of a class. 3 When an interface method is implemented in a class. it must be declared
How to check for Empty textboxed and fill it with a value on a button click
How to check for Empty textboxed and fill it with a value on a button... with a Button beside it . when i enter a text in that box and click the button it should go of from the first text box and should be added to the target text box and sit
Java Coding - Date Calendar
Java Coding  Write a program that prompts the user to enter the year.... For example,if the user entered the year 2005, and 6 for Saturday, January 1,2005, your program should display the calendar for each month in the year
TextField on the Image
TextField on the Image  how we set label or textfield etc. on the Image
User Define Alert Example
User Define Alert Example       Creating a user defined alert message, In the given example we have created a image that can be fill with some colors and text
dotnet - Date Calendar
dotnet  should validation occur in serverside or clientside   Hi Friend, Validation should be done at both sides. Client side... unwanted user to access your page or website,you must have to do Clientside
Validating date in javascirpt - Development process
;//get user entered date var usrdateArr = usrdate.split("--");//split the date...Validating date in javascirpt   Hi Friends, Can u plz give sample code for validating date in javascript using textbox.((dd--mm--yyyy
user validation
user validation  i hv just started with my lessons in jsp n also doin... ServletException,IOException{ String userlog = request.getParameter("textfield...(request.getParameter("user")) && passwrd.equals(request.getParameter("pass
Disabling User Edits in a JTable Component
to disable the user edits in a JTable component means editing is not allow to user. User can't edit any cell of JTable according  to his/her own requirements... Disabling User Edits in a JTable Component   
TextField
TextField      ... as the TextField. In the example given below, shown a textfield in the applet by creating its...;TextField("Type in the box");    add(tf); 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.