ভৌত জগৎ ও পরিমাপ — ফিজিক্স অধ্যায় ১ | 30 গুরুত্বপূর্ণ MCQ (Answer + Interactive)
Physics MCQ in Bengali | Competitive Exam Preparation function checkAnswer(btn) { // question container const qDiv = btn.closest('.question'); // correct answer text stored in data-answer attribute const correct = qDiv.getAttribute('data-answer').trim(); // all buttons const buttons = qDiv.querySelectorAll('button.option-btn'); // clicked text (trim) const clickedText = btn.querySelector('.opt-text').textContent.trim(); // disable all buttons and mark correct buttons.forEach(function(b){ b.disabled = true; const text = b.querySelector('.opt-text').textContent.trim(); // remove any existing mark spans (safe) const existingMark = b.querySelector('.mark'); if (existingMark) existingMark.remove(); if (text === correct) { b.classList.add('correct'); const span = document.createElement('span'); span.className = 'mark'; sp...