Hello. there is
<select id="start" onchange="calcRoute();"> <option value="*****">*****</option> <option value="*****">******</option> <option value="******">******</option>
How via Jquery or Js to add more options to it or remove ???? Thank you
You can add it like this:
var $_container = $('#start'); $_container.append('<option value="*****">*****</option>');
Delete:
var $_element = $_container.find('option[value = ******]'); $_element.remove();
Source: https://ru.stackoverflow.com/questions/618194/More articles:The preg_match () function does not work correctly.How to create such triangles using pseudo-elements?Recursion with a one-dimensional arrayConfiguring the MEF pluginHow to output data from the EAV database to a table?Mounting “own” partitions when booting the system instead of defaultingPHP + MYSQL + JS web applicationFirefoxdriver seleniumYii2 Undefined indexBootstrap3 change the grid when the screen is reducedAll Articles