Search code examples
javascriptsharepointlabeldeveloper-toolsnintex-workflow

How can I find a label that is in a webpart, but not in .js files?


On a SharePoint webpage there is a webpart which contains the label Leistungszeitraum. The problem I have is that I don't find the label in any of the JavaScript classes I have nor do I find it in a list of my Website Contents.

enter image description here

I used the developer tools and it showed me this:

Developer Tools

Where can I find the label Leistungszeitraum so that I can change it?


Solution

  • Try to use

    document.getElementsByClassName("nf-label-control")[0]
    

    Or jQuery

        <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
        <script type="text/javascript">
         var labelText = $(".nf-label-control").text() 
        </script>
    

    Provide more details if need further help.