jquery ui checkbox and php problem -
jquery ui checkbox and php problem -
so have list of checkboxes gets added dynamically - trying style them using jquery ui checkbox. problem can styled one. there ways create workaround dynamic id's on input tags , labels each input tag via jquery ? here syntax trying:
<div id="format"> <input id="check_<?php echo $category['category_id']; ?>" type="checkbox" name="selected[]" value="<?php echo $category['category_id']; ?>" /><label for="check_<?php echo $category['category_id']; ?>">d</label> </div>
jquery code:
$(function() { $( "#check" ).button(); $( "#format" ).buttonset(); });
thanks!
try once:
$("input[id^='check_'] > label[for^='check_']").css('color', '#f3f3f3');
php jquery user-interface checkbox
Comments
Post a Comment