input tel number

This commit is contained in:
Nathan Coad
2018-05-15 13:21:25 +10:00
parent 85194238bd
commit d80ee5dc3d

View File

@@ -37,7 +37,7 @@ function booking_variety_regn_form($node, &$form_state)
'#size' => 60,
'#required' => TRUE,
'#default_value' => !empty($data->booking_nid) ? $data->booking_nid : '',
'#attributes' => array(' type' => 'tel'),
'#attributes' => array(' type' => 'number', ' pattern' =>'[0-9]*'),
'#ajax' => array(
'event' => 'change',
'wrapper' => 'booking_variety_form_wrapper',