' }); $('#suggestion1').removeClass('suggestion'); $('#suggestion1').addClass('suggestions'); $('#suggestion1').html(html); } else { $('#suggestion1').addClass('suggestion'); $('#suggestion1').removeClass('suggestions'); $('#suggestion1').html(''); } } }); } function addValueininput(id) { //alert(id); var obj = $('#li_'+id).val(); //console.log(obj); //alert(data); $('#edValue').val(obj); }