|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
number issue
hi,
i have a credit card field and i want to test whats the first number in the field like if someone enters 3555555555555555 i only want the number 3 can anyone tell me how to do it in javascript thanks, |
|
#2
|
||||
|
||||
|
use substring(0,1)
for more info, do a search on the javascript substring function. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > number issue |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|