Blogger Themes

How split a string in jQuery and assign it to array and Check check boxes based on it



 var strFacilities = data.Item._RoomTypeFacilities;
                var arrayValues = strFacilities.split(',');
                $.each(arrayValues, function (i, val) {

                    $("input[value='" + val + "']").prop('checked', true);

                });


How split a string in jQuery and assign it to array and Check check boxes based on it How split a string in jQuery  and assign it to array and Check check boxes based on it Reviewed by Rejeti Praveen Kumar on 07:07 Rating: 5

No comments:

Powered by Blogger.