问题
Bootstrap Modal Ajax not working on click without the alert on second line. please help http://pastebin.com/cyXdWSPq
回答1:
Try wrapping your code in a $(document).ready(function(){}) or equivalent. When I see stuff like this it's usually because the document is not fully loaded yet. Give it a shot.
来源:https://stackoverflow.com/questions/17895530/bootstrap-modal-ajax-not-working-on-click