Jump to content

how to color label when passing value "0"


Tje

Recommended Posts

Hi,

in my code radio button disable when passing value is "0"

<script type="text/javascript">
$('input[type="radio"]').prop('disable', function() {
   return $(this).next().text().match(/\((\d+)\)/)[1] == 0;
 
  

});
</script>

it's ok.what i want to do is,color a label or label text when this function true.

 <label >
  <input type="radio" name="radio" id="rd" value="" />
  Click </label> 

please help me

Link to comment
https://forums.phpfreaks.com/topic/290148-how-to-color-label-when-passing-value-0/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.