One solution is to add the autocomplete class at runtime at page load. This example uses jQuery as that's what I'm most famliar with:
$(document).ready(function() { $("CityNameDe").attr("autocomplete", off"); }); You will have to tweak the original code in the autocomplete helper and remove the autocomplete='off' option. On Nov 27, 2:45 pm, cronet <[EMAIL PROTECTED]> wrote: > Hi, > > i'm using Nate's excellent autocomplete class in Cake 1.2 (http:// > cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/) > > calling it simple in view: > > echo $ajax->autocomplete('City.name_'.$lang); > > output: > > <input name="data[City][name_de]" type="text" id="CityNameDe" > autocomplete="off" value="" /> > > But, "autocomplete" is no valid value in xhtml, and the Site is marked > as not Valid. > > Is that attribute needed? > How can i switch this off? > > Regards, > Alexander --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---