[Solved] How to change label value using jQuery, without selecting by class or ID?


You select by element type with a certain prop

$('label[for="ProductSelect-option-0"]').text('Choose Color');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<label for="ProductSelect-option-0">Color</label>

1

solved How to change label value using jQuery, without selecting by class or ID?