I have one block of code as below
<div class="col-md-5 col-xs-12">
<?php echo "Current bootstrap class name is".$class_name;?>
</div>
$class_name should return col-md-5 in laptop and col-xs-12 in mobile.
So anybody know how to achieve this?
I have one block of code as below
<div class="col-md-5 col-xs-12">
<?php echo "Current bootstrap class name is".$class_name;?>
</div>
$class_name should return col-md-5 in laptop and col-xs-12 in mobile.
So anybody know how to achieve this?
You cannot fetch css class names with PHP, because HTML is generated only after PHP has finished its job. You'll have to use js/jquery for this. the code depends on which "tag" you want to start from.