I'm doing a web form,
I try to emulate a listbox, with the html select, the data pulls, but the problem is to show the content of the data obtained, after going through html, css, php, json, js, sql server and other herbs , I get the code to show, in the SELECT:
'<option value="' + filas.dni + '" >' + filas.dni + ' |  ' + filas.apellidos_nombres + '    | ' + filas.cargo + '    | ' + filas.sueldo + '    | ' + filas.costo_hora + '</option>');
but it happens that I show the data in non-aligned columns .. example:
12345678 - JUAN PEREZ - MEDICO
87654321 - MARIENELLA DEL AGUILA - ENFERMERA
96325874 - PERICO PEREZ - LIMPIEZA
There is some way to order it to appear as:
12345678 - JUAN PEREZ - MEDICO
87654321 - MARIENELLA DEL AGUILA - ENFERMERA
96325874 - PERICO PEREZ - LIMPIEZA
I have tried in several ways: - using jquery datatable, for other excellent uses, but, for my purposes the select - from the SQL server, with queries assigned spaces to the column, surnames_names + charge; it also goes out of alignment ...
I appreciate your help on how to align those columns in the select ...
thank you ..