Using javascript, here is a start:
[HTML]<input type='text' name='num' onkeyup="this.v alue=this.value .replace(/[^0-9\.]/g, '');" />[/HTML]
I tried code to stop the user entering more than 1 decimal place, or more than 10, but it made it too aggressive.
Would you like me to write more code, to restrict to: X or 10 or X.X, and append just a warning message after the box ?
Regards,...
User Profile
Collapse
-
Hi,
As a starter, I learnt at w3schools CSS tutorial
If the text is something that will never / rarely change, then I'd use an image editing package.
Other than that, I think this is outside the scope of CSS.
Regards,
AnthonyLeave a comment:
-
Hello infoseekar,
I once had this problem.
It took me ages to solve.
Maybe this is the solution for you.
What happened:
I saved a png image file from a website, but stupidly saved it as .jpg
When I came to use the image as a background:- Firefox showed it just fine
- Internet explorer would not show it, no matter what I did
The solution was to re-save the...Leave a comment:
-
Hello ajaymohank,
Why not generate the dropdown like this:
[HTML]<form action='form_pr ocessor.php' action='post'>
<select name='village'>
<option value='1|Chande ri'>Chanderi</option>
<option value='5|Balend er'>Balender</option>
<option value='8|Porban der'>Porbander</option>
</select>
</form>[/HTML]
Then...Leave a comment:
No activity results to display
Show More
Leave a comment: