Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Clear Autocomplete Input Textbox

$
0
0
Can some one help me on clearing the Autocomplete Input box. The scenario is as below
  1. When a user types some char in the autocomplete textbox, drop down will be visible with the values.
  2. If the user doesnt select any from the dropdown list and moves out of the control then i want to clear the text box as well as the drop down should not be visible. The below is the code
$(document).ready(function () {
    $().SPServices.SPAutocomplete({
        sourceList: "List1",
        sourceColumn: "ListItemName",
        columnName: "txtListItem",
        ignoreCase: true,
        numChars: 2,
        slideDownSpeed: 1,
        debug: false
    });
});
It will be great if some one can guide me on how we can achieve the same.

Thanks
Suresh A

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>