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_
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros