Opened 12 years ago
Closed 12 years ago
#8390 closed enhancement (wontfix)
Add jQuery('input').intVal/floatVal to write less code to get value as number
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | unfiled | Version: | 1.5.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Please add $('#input').intVal() and $('#input').floatVal() to reduce code amount for number conversion.
Actually you need to use parseInt/parseFloat and isNaN to guarantee execution. So I didn't writing less and do more...
Please see some code in #5288.
Note: See
TracTickets for help on using
tickets.
These can easily be implemented as plugins; adding them to core would make everyone pay for them.