I add an element to a parent div dynamically.
$(\'.some_div\').append(\"hey! \")
In my CSS,
Your string concatenation could be the problem, since your string literal is enclosed within ""
any occurrence of "
within the string has to be escaped
$('.some_div').append('- hey!
')
Demo: Fiddle
Note: also note that li
is a valid child for ul
or ol
elements, so the some_div
must be either one of them