Posts by Júlio Pradera • 275 points
5 posts
-
2
votes1
answer176
viewsQ: Masking for date field
Who ever used the type="date" HTML5 certainly noted that although the date is visible in the DD/MM/YYYY, when you retrieve the value by Javascript, it is in the format YYYY-MM-DD. What I want is…
-
1
votes2
answers483
viewsA: Data type Date
Utilize Month in place of date. Maybe that’ll solve your problem. <input type="month" name="EstatisticosValidade">
-
1
votes4
answers43355
viewsA: Check if string has only numbers
See if it helps you: function isNumeric(str) { var er = /^[0-9]+$/; return (er.test(str)); }
-
8
votes4
answers37227
viewsQ: Calling one function inside the other, through a string
To facilitate the work of other programmers in the company whose default is no pattern, i created a Javascript library with some form field formatting and validation functions (date, phone, CPF,…
-
5
votes3
answers5368
viewsQ: How to add an onBlur event without overwriting the original?
I have a code that’s basically like this: <input type="text" value="" onfocus="myFunction(this);" onblur="alert('1');"> <script> function myFunction(obj) { obj.onblur = function() {…
javascriptasked Júlio Pradera 275