Avatar of maqskywalker
maqskywalker

asked on 

jquery select all ids that start with

i'm using the jquery masked input plugin
http://digitalbush.com/projects/masked-input-plugin/

In my jquery code i currently set the date mask like this and it works fine:

$('#txtbox1').mask("99/99/9999");


On another page i have 3 textboxes.

The 3 textboxes on this page have these ids

txtboxEmployee_123
txtboxEmployee_135
txtboxEmployee_145

How do i revise this.
$('#txtbox1').mask("99/99/9999");

 So the mask gets applied to all textboxes with an id that starts with this txtboxEmployee_
JavaScriptjQuery

Avatar of undefined
Last Comment
Chris Stanyon

8/22/2022 - Mon