0
How to modify the attribute of a container element of jquery in Javascript?
I have the following HTML: <div id="tem_${temName}" class="tem-item gallery-item" style="display:inline-block"> <img class="nottohide" onerror="this.src='static/common_data/plus.png'" src="" height="150" width="100"> </div> And this jQuery Container: templateList = $('#pose_list'); How can I Manipulate the value of the src attribute of the <img> tag which in itself is nested in the <div> tag
1 ответ
+ 1
$("img").src="" or $(".nottohide").src="" or $("div>.nottohide").src=""
I am not sure about the last one