Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="test"></div>
<script>
function removeByValue(arr, val) {
for(var i=0; i < arr.length; i++) {
if(arr[i] == val) {
arr.splice(i, 1);
break;
}
}
}
var str = ["javascript", "jquery", "angularjs", "backbonejs"];
removeByValue(str, "jquery");
document.getElementById("test").innerText = str;
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507