التفاعل مع Dom Development Tutorials, Guides & Insights
Unlock 1+ expert-curated التفاعل مع dom tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your التفاعل مع dom skills on DeveloperBreeze.
Adblocker Detected
It looks like you're using an adblocker. Our website relies on ads to keep running. Please consider disabling your adblocker to support us and access the content.
Tutorial
javascript
مكتبة jQuery: استخدام JavaScript بسهولة وفعالية
<!DOCTYPE html>
<html lang="ar">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>إخفاء وإظهار باستخدام jQuery</title>
</head>
<body>
<p id="text">هذا نص يمكن إخفاؤه أو إظهاره.</p>
<button id="toggleText">تبديل العرض</button>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$('#toggleText').click(function() {
$('#text').toggle();
});
</script>
</body>
</html>- عند النقر على الزر، سيتم إخفاء النص إذا كان ظاهرًا، أو إظهاره إذا كان مخفيًا باستخدام
.toggle().
Sep 26, 2024
Read More