As you can see in the code below, I have 2 flags my and hk.
When I click on the hk flag, it will redirect to the hk page and at the same time will disable the hk button to show the difference from other buttons.
So,what php code do I use to disable only the button that is clicked?
<button id="btn_my" dojoType="dijit.form.Button"
onClick='location = "<?php echo url_realurl();?>/results/view/all/M"'>
<?php
echo ci_create_img('my');
?> <!--this is malaysia flay image -->
</button>
<button id="btn_hk" dojoType="dijit.form.Button"
onClick='location = "<?php echo url_realurl();?>/results/view/all/H"'>
<?php
echo ci_create_img('hk');
?><!--this is hongkong flay image-->
</button>