function openP không chạy
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</head>
<body>
<button showP("#myP")>click</button>
<p id="myP" style="display: none">I love you</p>
<script>
$(document).ready(function(){
$("button").click(function showP(id){
$(id).show();
});
});
</script>
</body>
</html>
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?