Recently, i am working with jquery for my mini-project.
I took a code from this resource. http://unwrongest.com/projects/airport/
My code works fine, and here is my code
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="../jquery.airport-1.1.source.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#div1').airport([ 'user1', 'user2', 'user3' ]);
});
</script>
My html body tag looks lik this
<div id="div1"></div>
Now, i have a table called "users"(with fields 'id' and 'username') and i want to display the username dynamically from the table
and not the hardcoded value in the above script (i.e. $('#div1').airport([ 'user1', 'user2', 'user3' ]); )
How can i achieve this?