Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change an html paragraph text based on selected radio button?
    primarykey
    data
    text
    <p>I have been developing a course management system with PHP and MySQL. I recently ran into a problem. I created a basic webpage (<code>EditCompletion.php</code>). Basically, what I want to do, is have a link on that page that opens a jQuery Modal Window and within that modal window should be 3 radio buttons, a small description paragraph (which changes when a new radio button is clicked), and a submit button. This is how I want it to work:</p> <p>I want to be able to select a student (<code>CERTAIN SELECTED STUDENT</code>) and a lesson (<code>CERTAIN SELECTED LESSON</code>) then I want to be able to click the link on EditCompletion.php that then opens the jQuery Modal Window. I want to then be able to choose from the following options:</p> <pre><code>Unlock - (Description Paragraph - Are you sure your want to unlock (CERTAIN SELECTED LESSON) for (CERTAIN SELECTED STUDENT))? Exempt - (Description Paragraph - Are you sure you want to exempt (CERTAIN SELECTED STUDENT) from (CERTAIN SELECTED LESSON))? Master - (Description Paragraph - Are you sure you want to master (CERTAIN SELECTED STUDENT) out of (CERTAIN SELECTED LESSON))? </code></pre> <p><code>THE CERTAIN SELECTED</code> will show up as the <code>CURRENT SELECTED [WHATEVER]</code>. For example, <code>SELECT STUDENT JOHN DOE</code> and <code>LESSON 1</code> on <code>EditCompletion.php</code> and then click the link to open the modal. I want to select an option using radio buttons, and upon clicking "save", the MySQL database would be updated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload