I\'m working on a web application that uses ajax to communicate to the server. My specific situation is the following:
I have a list of users lined out in the html p
There is jQuery's data function
$('li').data('userid',uid); // sets the value of userid uid = $('li').data('userid'); // retrieves the value of userid
official documentation: http://docs.jquery.com/Data