خرید بک لینک

Vote count: 0

I would know if it's possible to highlight a word contained in a form ?

I have a form with a long text written into the input and I want to find a word in this form and only in this form.

I started with this code but it doesn't search into the form.

  `<div id="search_input">
        <form action="" id="form_search">
            <input style="width: 300px" type="text" placeholder="Entrez un mot-clef" id="search">
            <button type="button" id="submit_form" onClick="checkSearch()" value="Submit">Rechercher</button>
        </form>
    </div>
    <script type="text/javascript">
    function checkSearch() {
        var query1 = document.getElementById('search').value;
        window.find(query1);
        retu true;
    }
    </script>`

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 20 ارديبهشت 1395 ساعت: 19:58

صفحه بندی