Jump to content
Larry Ullman's Book Forums

if I have three div where i am print same value from database in three div in radio button format . And database value count is 20 so i am using while loop for like below


Recommended Posts

My Question is : if I have three div where i am print same  value  from database in three div  in radio button format . And database value count is 20 . So all three div have 20 value of radio button . so i am using while loop for like below

while ($row = $resultset->fetch_array(MYSQLI_ASSOC)) {
                     //echo "<option value=\"{$row['email']}\">{$row['name']}</option>";
                     echo "<div><input type=\"radio\" class=\"Checkboxes4\" name=\"taskprimary[]\ id=\"taskprimary\" value=\"{$row['email']}\" >";
                     echo"<span>".$row['name']."</span>"."</div>";    
                }
and print that value in Three div in html page 

a.Print 20value in radio format html page in first div 

<div class="col-sm-4">
                <div class="form-group ui-widget" id="firstdiv">
                </div>
            </div>

b.Print 20value in radio format data in html page in second div 

<div class="col-sm-4">
                <div class="form-group ui-widget" id="seconddiv">
                </div>
            </div>

c.Print 20value in radio format  data in html page in third  div 

<div class="col-sm-4">
                <div class="form-group ui-widget" id="thirddiv">
                </div>
            </div>

Now i am trying if i select any radio button value out of 20 value in first div  then same matching value will be disable in other two div ( in Second div and third div ) .My aim is we have three div like primary , secondary and reviewer and all three div have all employee name  of company including executive and managers which come from database and print in loop . So any one one select primary employee for task then that employee not show in Secondary person list as well as primary person not show in Reviewer person .   

So if anyone can help me in this then its great for me 

Link to comment
Share on other sites

 Share

×
×
  • Create New...