Dynamically Create Checkboxes from AJAX Response

后端 未结 2 1912
后悔当初
后悔当初 2021-01-22 09:57

I\'m creating a website involving bootstrap and want to display a list of checkboxes (names of computers) in a modal dialog for the user to choose from. I have an AJAX call and

2条回答
  •  醉话见心
    2021-01-22 10:19

    This can be best achieved by using ngRepeat from AngularJS: https://docs.angularjs.org/api/ng/directive/ngRepeat

    If you include it in your project, I hope it will lower 20-30% of the code logic that you you are searching for or having issues like this.

    For further details here is the link: https://angularjs.org/

    At last you have other choices too, but I just wanted to share the smartest framework in JS with you.

    Happy coding!
    :)

提交回复
热议问题