Medium
Here is the following code. When clicked, which statements are true?
<script type="text/javascript"src="jquery.js"></script>
<div>
<p><b>Bold paragraph in a div</b></p>
</div>
<script type="text/javascript">
$('div').bind('click', function(event){
alert($(this).attr('nodeName'));
});
$('p').bind('click', function(event){
alert($(this).attr('nodeName'));
});
$('b').bind('click', function(event){
alert($(this).attr('nodeName'));
});
</script>
Author: InconnuStatus: PublishedQuestion passed 257 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about jQuery
1
Which of these different propositions are correct regarding AJAX processing in jQuery?1
We want to develop a jQuery plug-in or simply define our own methods or properties on the object by augmentation. Which of these statements are correct?0
Use categories in event names in jQuery0
What is the `.ready()` method in jQuery?0
The `.animate()` method allows you to create a new visual effect, managing CSS properties associated with the styles of HTML elements. This method is used on the jQuery class object. The method manages a queue internally for the management of effects thanks to options.queue