How can I get this value ? This not works :
<script type="text/javascript" src="/theme/js/jquery1.8.0/jquery.min.js"></script>
<script type="text/javascript">
$('.Text1').click(function () {
$('.Span1').each(function () {
alert($('.Span1').val());
});
});
</script>
I need to get the Span1's value. What I'm doing wrong ?
Edit : Span1 elements are <span>
, that contains text.