473,385 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

how to make textbox should be mandatory to be filled up

Expand|Select|Wrap|Line Numbers
  1. <tr>
  2. td>Enter Viva Marks (20%):</td>
  3. <td><input type="text" id="VivaMarks" name="VivaMarks"  maxlength="4" onKeyUp="numericFilter(this);" value=" <?php if(isset($esubjectID)){echo $eViva;} ?>" ></td>
  4. </tr>
  5.  
Jun 13 '14 #1
1 1110
Dormilich
8,658 Expert Mod 8TB
that depends a little bit on the used browsers. if the support HTML5 form, you could simply add the required attribute, otherwise you would need to write a JavaScript that checks before submitting that the text field is properly filled (and if not cancels the submit).
Jun 16 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Frans Englich | last post by:
Hello, In my use of getopt.getopt, I would like to make a certain parameter mandatory. I know how to specify such that a parameter must have a value if it's specified, but I also want to make...
3
by: James Radke | last post by:
Hello, How can I make the text of a windows textbox read vertically (i.e. rotated 90 degrees) from bottom to top instead of horizontally? Any samples or ideas would be appreciated! Thanks!...
4
by: Tom | last post by:
I have a form with a tabControl with 6 tabPages. There are textBoxes on all the tabPages that are bound to a dataset. The user can click a modify button, edit whatever textBoxes they want and then...
1
by: rockdale | last post by:
Hi, All I have an datagrid with alternating color, I also want the back-color of my textbox in ItemTemplate also appears alternating, how could I do that? <asp:datagrid id="dgridEmpHours"...
1
by: danibecr | last post by:
Hello all, I have a form that contains a remarks field for user input and a checkbox for out of compliance orders. I need to make the remarks field mandatory after the checkbox is checked. Right...
2
by: wanwan | last post by:
is there a way to have the keyboard cursor active in a textbox on showdialog? Thanks
1
by: lyealain | last post by:
how can i hide a textbox.. only when click the textbox appear.. thanks
2
by: billa856 | last post by:
Hi, My project is in MS Access. In which I have one Form(DatEntry) which I am using for data entry in table(PRODUCTION). In this Form I have some Textboxes and Comboboxes....
4
by: manishamca | last post by:
how to make the textbox uneditable when we click a button. I want to make the textbox uneditable when we click a button.plz help me. thanks in advance.
10
by: popeyb | last post by:
I'm a beginner in visualbasic.net I've 50 textbox from 1 to 50 and my question is how can get a value o show a value in a specific textbox? for example the user enter a number to a text box and I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.