Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
Abhay_R

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 

Share this post


Link to post
Share on other sites

I feel like this is the third post involving the same question (and I've already answered the other two). Could you clarify if this is a new issue or not? 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...