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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -