Let the html text input box only enter numbers and 1 decimal point (can be changed between 0-59)
Today, a colleague needs this function, which is mainly to restrict users from entering numbers and decimal points that do not meet the specifications, which leads to difficult price calculation problems. I have compiled the following code, and friends who need it can refer to it.
2011-11-11
Ajax's js code that submits messages online and displays in real time [revised version]
Ajax submits and displays HTML instances online. Don’t underestimate this page. Although there are not many codes, there are not many functions. It can complete form judgment, submits messages without refresh, displays without refresh, and realizes the function of displaying text in animation. What do you think?
2010-11-11
javascript select all/negatively, unselect effect
Just now, I saw a friend's selection/anti-select effect on javascript homepage in the blog park.
2010-04-04
js verification function code
There are several js verification function codes, friends who need it can refer to it.
2010-03-03
Adjust the height of the iframe through the page height pointed to by ifame
[Red] Adjust the height of the iframe through the page height pointed to by ifame...
2006-10-10
JS code to submit a form without a form form
It turns out that the article is under JSP. In fact, the code of JS is applied. You can refer to it. In fact, the principles of each language are the same. If ajax is used seriously, it will be perfectly validated by the client.
2009-09-09
Verify the value of multiple checkboxes in a form using Javascript
Like radio boxes, many newbies encounter problems when using Javascript to verify the value of multiple checkboxes in forms. The reason is that checkbox and ordinary text boxes are very different when getting values.
2009-09-09
Ctrl + Enter to detect code before submission
Ctrl + Enter to detect the code before submission...
2006-08-08
JavaScript input box prompt list effect
It seems that this effect is often used to improve the user experience, so I wrote an input box prompt list.
Friends who use widescreen please help me test whether the position of the list is misaligned.
2008-08-08
Solution to display prompt information in password form under js
Solution to display prompt information in password form under js...
2007-08-08