Jquery – How to make input string value to json object
I have a jquery variable like this : var d1 = [{text:'t1',value:'1'},{text:'t2',value:'2'},{text:'t3',value:'3'},{text:'t4',value:'4'}]; console.log(d1); When i display it in console.log, i have something similar to the image below Now if i had an input in html like this : <input id="txtstr"…