Skip to main content

Bug Tracker

Side navigation

#8390 closed enhancement (wontfix)

Opened February 26, 2011 02:35AM UTC

Closed February 26, 2011 03:46AM UTC

Add jQuery('input').intVal/floatVal to write less code to get value as number

Reported by: Owned by:
Priority: undecided Milestone:
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.

Attachments (0)
Change History (1)

Changed February 26, 2011 03:46AM UTC by dmethvin comment:1

resolution: → wontfix
status: newclosed

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