Is there any way with jQuery to remove all LI inside UL with id 'myList'?
The following will do the trick:
$('#myList li').remove();
But you should familiarize yourself with jQuery supported selectors and manipulation
A slightly simpler approach:
$("#myList").empty();
See empty(). Another answer works fine for this, but it becomes more inconvenient for other elements that may have different child elements (e.g. tables).
empty()
Source: https://habr.com/ru/post/1724840/More articles:PHP Development MVC Framework - designalgorithm for moving points horizontally and vertically - algorithmКак получить уникальные записи продуктов в List с LINQ - c#jquery getscript for iframe object - javascriptIs there a complete list of Google App Engine applications? - google-app-engineHow to print an array in jdb java debugger? - javabinding snapping to a specific page position - jqueryUIElement position relative to window - c #how to send http "multipart / form-data" message in script action? - actionscript-3wpf treeview mvvm - wpfAll Articles