techprogram Posted November 28, 2014 Share Posted November 28, 2014 (edited) Hello i create a textbox in html and i want the textbox have keywords like this picture 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 November 28, 2014 by techprogram Link to comment Share on other sites More sharing options...
niche Posted November 28, 2014 Share Posted November 28, 2014 (edited) 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 November 28, 2014 by niche Link to comment Share on other sites More sharing options...
davej Posted November 28, 2014 Share Posted November 28, 2014 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 More sharing options...
techprogram Posted November 28, 2014 Author Share Posted November 28, 2014 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 More sharing options...
davej Posted November 28, 2014 Share Posted November 28, 2014 Start writing code. http://www.w3schools.com/js/ See the translate button near the top of the right panel under the search bar. Link to comment Share on other sites More sharing options...
Count_Zero Posted November 29, 2014 Share Posted November 29, 2014 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? 1 Link to comment Share on other sites More sharing options...
techprogram Posted November 29, 2014 Author Share Posted November 29, 2014 (edited) Finally ...! someone understand Count_Zero i hope you tell me how i do that I appreciate you this Thanks you so much have a good day Edited November 29, 2014 by techprogram Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now