[jQuery] Re: Child ID

2008-09-12 Thread shapper
The problem is not exactly that ... I am developing a MVC application ... for example, PostController has views: Create, Destroy and Edit. All views have a form named Create, Destroy and Edit. Most forms have common JQuery scripts: ToolTip, FileStyle, etc ... However, in some cases they differ

[jQuery] Re: Child ID

2008-09-12 Thread MorningZ
$("#StartDate, #FinishDate", "form#Create").each(function() { $(this).mask("-99-99 99:99:99"); }); but to note, ID's should be unique in the page, so having doesn't semantically make sense (and isn't 'valid HTML' to boot) Why not just use a css class