Bug Tracker

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: [email protected] Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:


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.

Change History (1)

comment:1 Changed 12 years ago by dmethvin

Resolution: wontfix
Status: newclosed

These can easily be implemented as plugins; adding them to core would make everyone pay for them.

Note: See TracTickets for help on using tickets.