I have this code:
$('#cssmenu li:has(ul) a').on('click', function(e) {
e.preventDefault();
$('#cssmenu li ul').hide();
$(this).next('ul').show();
});
This checks if the code is taken from the database. Otherwise, it is displayed here. What I want to do now is to randomize the codes that are not yet taken and pick just one of those randomize codes and assign it to variable where I will then pass to a form data to store in a row along with the registered user's information. How do I pass values from ng-repeat to pass to the form then to the database?