I will try to keep this post the shortest possible.
I am trying to create a jquery mobile web-page where , i import the photos and albums from a facebook page , usin
Binding events to dynamically create items should be like this.
$(document).on('event', '.element', function () { magic });
Demo
This code applies for all types of dynamic elements.
Another important note, don't use .ready / $(function($) with jQuery Mobile. Use jQuery Mobile events.
.ready
$(function($)