Answer the question
In order to leave comments, you need to log in
How to get the value of p object inside this?
There is the following code:
<div onClick="notifyLol()">
<p>Хоп хей лалалей</p>
</div>
<div onClick="notifyLol()">
<p>Жымжым</p>
</div>
<div onClick="notifyLol()">
<p>Кукареку</p>
</div>
<script>
function notifyLol(){
alert("Ваше сообщение" + $(this > p).text());
}
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question