// Get the value src of the image of the js statement: var path = $ ( '# suolue') attr ( 'src'. ); Var path = document.getElementById ( "suolue" ) .src; var path = $ ( " #suolue ") [0 ] .src; // JS get a text label <a id="oldreportpath" class="info" style="margin: 0px 0px 5px 0px;float:left;width:auto;">..\..\QMSUploads\RMA\\test2\20191129095325_3218.pptx</a> js :document.getElementById(“idname”).innerText; jq:$("#idname").text();