I'm attempting to make the first four characters of each element in an array (specifically a list) bold, but I am only able to select entire strings:
$("li").slice(0).css("font-weight", "Bold");
Is there a way for me to indicate which characters within each string I would like to slice?