Jump to content

html textbox custom keywords help !


techprogram

Recommended Posts

Hello

 

i create a textbox in html and i want the textbox have keywords

 

like this picture

 

1ReBE3.png

 

 

And i want the keywords custom

 

what i mean is i put the keywords

like in picture

  • ""test speed" first one
  • ""test tanki" second one

 

i want to put in this place some custom keyword

 

and when the person come and click in textbox 2 times then

will showing the custom keywords i put

 

i hope to give me the code and thanks you guys

Edited by techprogram
Link to comment
Share on other sites

I'd start with Ajax.

 

http://www.w3schools.com/php/php_ajax_intro.asp

 

Though that solution may be at least a couple months away depending on how much code you know.

Edited by niche
Link to comment
Share on other sites

Unless you are making a visible effort to write code you are unlikely to inspire anyone here to write code for you.

 

Looking at your post I'm not even sure I know what you mean. You say it is a text box but if it is read-only then why use a text-box? Wouldn't the desired usage be equivalent to a drop-down list? See this example...

 

http://www.w3schools.com/js/tryit.asp?filename=try_dom_select_option

 

Alternately, you could use a list of links styled to look like ordinary text which each call Javascript routines. See this example...

 

http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_a_href_script

Link to comment
Share on other sites

NO NO i dont mean it,s read only

what i mean is

 

if someone click in textbox 2 times then will showing the custom dropmanu keywords

and if someone click in some word then the word will be applied in textbox

 

i am sorry if you dont understand what i mean

i know that hard to understand

 

and thanks so much for answes

Link to comment
Share on other sites

I think it's a translation thing, and he doesn't mean the form element "text-area" per say, but is refering to the field area where the text goes in a form element. If I am right here then davej's suggestion of the select options element should work for your purpose. In other words techprogram, you have a form, and one of the fields requires the user to select a keyword from a list of keywords that will be applied to that field, right?

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...