Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

jquery select all ids that start with

Avatar of maqskywalker
maqskywalker asked on
JavaScriptjQuery
1 Comment1 Solution194 ViewsLast Modified:
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_