Jump to content
php.lv forumi

default suggestions


anonīms

Recommended Posts

Vai ir iespējams kaut kā lapai liegt rādīt defaultos suggestions (runa iet par input lauku, kurš rāda vecos datus, kas ir tikuši ievadīti)?

Vnk esmu uzlicis citu suggestions, kas ņem no lietotāju listēs un defaultā ļoti maisās...

Link to comment
Share on other sites

Viens variants ir dinamiski ģenerēt lauku nosaukumus:

Piemēram:

<input name="username_20090511233778"/>

Ir vēl arī parametrs autocomplete, taču nezinu vai visi pārlūki to ņem vērā:

<input name="username"autocomplete="off"/>

Upps ne gluži:

https://developer.mozilla.org/en/How_to_Tur...pletion_Feature

For example, a typical form element line with autocompletion turned off might look like the following:

 

<form name="form1" id="form1" method="post" autocomplete="off"

action="http://www.example.com/form.cgi">

[...]

</form>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...