using jquery autocomplete widget with json
hi
i am not able to understand how to get my json picked in autocomplete UI widget.
- for(var i=0, l = data.itemisedBill.length; i<l;i+=1){
- var itemLength=data.itemisedBill[i].item;
- $(itemLength).autocomplete({
- source: $[data.itemisedBill]
- });
-
- }
It is giving exception in the source part? how should i give my json here. I json file is separate.
Thanks