I want to ask if there's any way to delete and add a <link>
element in jQuery?
if I can for example get the element <link>
by the href of it and deleted
like this code:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="assets/css/1.css?v=0.1" rel="stylesheet">
<link href="assets/css/2.css?v=0.1" rel="stylesheet">
</head>
<body>
</body>
</html>
will become:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="assets/css/2.css?v=0.1" rel="stylesheet">
</head>
<body>
</body>
</html>
And how can I add a <link>
element?