I wish to add a select list under the first 'li' of my list.
It works with this method.
$("ul.criteriallist li:eq(0)").html("<select name='cao1' class='cao ops'></select>"
+ $("ul.criteriallist li:eq(0)").html());
However, there's also another case where I would like to check whether the select list already exists within the 'li' item (to prevent adding duplicates). Do you have any recommendation on how I can do that?
What I'm thinking is something like.. (some pseudo code here..)
//If select list 'cao1' does not exist in this list item
// Add select list in this item