# WebSDK: (javascript) how to add some refresh function to this library?

**URL:** <https://forum.xojo.com/t/websdk-javascript-how-to-add-some-refresh-function-to-this-library/73616>\
**Category:** Web SDK\
**Created:** [December 12, 2022, 1:43pm UTC](https://forum.xojo.com/t/websdk-javascript-how-to-add-some-refresh-function-to-this-library/73616 "2022-12-12T13:43:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [December 12, 2022, 1:43pm UTC](https://forum.xojo.com/t/websdk-javascript-how-to-add-some-refresh-function-to-this-library/73616/1 "2022-12-12T13:43:23Z")

</div>

Hi Folks,

I’m using this open source library to make a websdk combobox.

> **[GitHub - Honatas/bootstrap-4-autocomplete: A simple autocomplete/typeahead...](https://github.com/Honatas/bootstrap-4-autocomplete)**
>
> A simple autocomplete/typeahead for Bootstrap 4 and jQuery - GitHub - Honatas/bootstrap-4-autocomplete: A simple autocomplete/typeahead for Bootstrap 4 and jQuery

I use

```nohighlight
                    $('#' + this.mControlID + '_Autocomplete').autocomplete({
                        source: this.mValueList,
                        onSelectItem: classInstance.onSelectItem,
                        highlightClass: this.mHighlighIndicator,
                        treshold: this.mThreshold,
                        maximumItems: this.mMaximumItems
                    });

```

in the render function to initialize the combobox.  
but when I update the valuelist, how can I update the javascript control with the new values  
without re-defining the whole combobox control ?  
as there are some live artefacts I would like not to see…  
thanks.
