#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    How to make a datalist in javascript?


    How to make a datalist in javascript.
    Html datalist does not work in old browser so i want to make a
    datalist in javascript.please help me.
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,008
    Rep Power
    2791
    Welcome to DevShed, AA Haider.

    What have you tried so far?
    [PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [ANSI C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

    W3Fools - A W3Schools Intervention.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    2
    Rep Power
    0

    How to make a datalist in javascript?


    Originally Posted by Winters
    Welcome to DevShed, AA Haider.

    What have you tried so far?
    I want to make a data list for search field which work in all browsers.Here is some code.
    Code:
    <input type="text" list="color" />
    <datalist id="color">
    <option value="red">red</option>
    <option value="green">green</option>
    <option value="blue">blue</option>
    </datalist>
    This is work well in new browsers like google chrome and Firfox.
    But it does not work in old browser like IE and old version of firfox.
    So, I want to make a datalist through the javascript which work in all browser.
    I know some very old version of IE does not support javascript.This is not problem.

IMN logo majestic logo threadwatch logo seochat tools logo