仕事ではありません。
jQueryのソリューション:
var label_text = $('#labelId').text(); //Get the text
$('#labelId').text(label_text.replace("()", "(new)")); //Replace and set the text back
ピュアJSソリューション:
var label_text = document.getElementById('labelId').innerText; //Get the text
document.getElementById('labelId').innerText = label_text.replace("()", "(new)"); //Replace and set the text back
・ホープ、このことができます。あなたが使用することもでき、この
$(document).ready(function(){
$("#labelId").text($("#labelId").text().replace("()","(test)"));
})
<label id="labelId" class="control-label col-lg-4">Some text()</label>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>