Click here to Skip to main content
15,880,364 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set the size or height of the datalist? I want to have the scroll bar when the datas in the datalist becomes higher.

XML
<div id ="form">
    <form action="english.php" method="post">
        <table>
            <tr>
            <td><input type="text" list="word" name="word" autocomplete= "off" placeholder="Please type an English Word" size="35" style="padding : 3px;" /></td>
               <datalist id="word" size="11">
                    <?php while($row = mysqli_fetch_array($result)) { ?>
                    <option value="<?php echo $row['word_en']; ?>"><?php echo $row['word_en']; ?></option>
                    <?php } ?>
               </datalist>
                <?php mysqli_close($connection); ?>
                <td><input type="submit" value="Search" style="padding : 3px;" /></td>
                <td><input type="reset" value="Clear" style="padding : 3px;" /></td>
            </tr>
        </table>
    </form>
</div>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900