How to put in a variable the child element of the selected object? tried this:
$('.q1').click(function(){ var $b=$(this); var $c=('$b span'); }); <div class="q1"> <span>123</span> </div> ...does not exceed.
Source: https://ru.stackoverflow.com/questions/616494/
All Articles
var $c = $b.find("span");- Igor<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>- Igor