I am using ASP.NET MVC ...

So the autocomplete list is defined on the server and accessed on HTML
using something like:
<%= MyModel.ViewData.TagList.ToString %>

Can I use something like this to define the validation?

Thanks,
Miguel

On Jun 27, 1:59 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Depending on where your autocomplete data is coming from, you could
> use a custom method (local data) or the remote method (remote data).
>
> http://docs.jquery.com/Plugins/Validation/Validator/addMethodhttp://docs.jquery.com/Plugins/Validation/Methods/remote
>
> Jörn
>
> On Fri, Jun 27, 2008 at 2:42 AM, shapper <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I am using AutoComplete with Validation. Can I create a validation
> > that accepts only values from the autocomplete?
>
> > For example if the autocomplete list is:
> > "New York, London, Lisbon, Paris"
>
> > Then the following would be accepted:
> > "New York, London"
> > "New York"
> > "Lisbon,    Paris  "
> > "    London,Paris,Lisbon"
>
> > But not:
> > "New York, Rome"
> > "Moscow"
>
> > Is this possible?
>
> > Thanks,
> > Miguel

Reply via email to