开发者

Jquery check boxes to populate list

I am attempting to populate a list of links depeding on what checkbox options are checked by a user. You can see what I have done so far here to give you an idea of what I am doing h开发者_运维知识库ttp://dev.perfectdaycanada.com/filter - the problem I am having is that I cant seem to get the checkboxes to populate links if only a county or a farm is selected. So at the moment one of the first set of checkboxes must be selected for the subsequent ones to work. Ideally any checkboxes ckecked should populate the list of links.

Any help would be much appretiated.

Thanks


In your code just add this link at the top of your code

$(document).ready(function(){
   $('body').find(':input.type_check:first').attr({'checked':'checked'});

   ....
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜