$('<li>:eq(1)').replaceWith('TEST')
Hi
I want to edit a <li> tag. I cant get the correct notation please help
$('<li>:eq(1)').replaceWith('<li>TEST</li>')
Ideally id like to replace 1 with a variable called index like so:
$('<li>:eq(index)').replaceWith('<li>TEST</li>')
Please help me
Thanks
Alan