Issue
<td><span class="btn btn-xs btn-primary" onclick="reviewLiveScholarship('<?php echo $ship->id;?>')">Review</span></td>
I need to change the button color according to the data from database, where required documents are there ( either 1 or 0).
This button directs into the result page where the documents where shown.
Code is written in CodeIgniter.
Solution
You can try something like this
$color = "background-color: #5cb85c;";
}
echo "<button class='ServiceOff btn glyphicon glyphicon-globe' name='on_off' value='".$token_id."' style='".$color." color: #fff;''></button>";
} // <-- *** YOU NEED TO ADD THIS ***
} else {
echo "Error";
}
Answered By - Arpit Jain Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.