How do you assign a value from ng-repeat in AngularJS?

时间:2015-05-08 10:00:05

标签: mysql angularjs forms

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?

0 个答案:

没有答案