1
I have the following Selected, how do I make it Filtre the single fields for example it is repeating the same option <option value='967'>GOIANIA - GO</option>
several times I want it to show only once the repeated data, and possible to do this with jquery.
"<option selected="selected" value="0">Cidade</option><option value='967'>GOIANIA - GO</option><option value='967'>GOIANIA - GO</option><option value='967'>GOIANIA - GO</option><option value='967'>GOIANIA - GO</option>"
Where does this HTML come from? wouldn’t it be better to do this on the server or where this HTML is generated?
– Sergio
this Selected is being generated through an ajax that requests for the method and takes the return of the list in json ultilizando Asp mvc , la in the controller I have the list of its two attributes Id,I have last named the distinct but it is returning unique Egm.Lstcid = Egm.LstCid.Distinct() data. Tolist(); , I thought there was an easy way to easy using jquery
– Fernando josé