Posted on 2016-10-20
I am making a search filter...
And how i am intending it to give it to user... is ...like :
user will provide the following html in its file :
And then in js will invoke my library with the parameter filter
And my code will replace this div with the search filter html and everything else....
Now there is an alternative approach to this :
Which approach is better passing the id as a string or passing an object... and which one....
Also the search filter html which i will return should append to this div element or replace this element ?