I am looking to assign the newly generated id to the name field.
Right now i am assigning that value to a randomly generated number.
Instead of assigning id to random I want to assign it the newly generated name.
Here is my show method:
show: function (){
$(this).slideDown();
var random = Math.random();
// Instead of assigning id to random I want to assign it to the newly generated name
$(this).find('[id]').attr('id', random);
$(this).show();
$('.date-picker').datepicker({
rtl: App.isRTL(),
orientation: "left",
autoclose: true
});
},
Hello,
I am looking to assign the newly generated id to the name field.
Right now i am assigning that value to a randomly generated number.
Instead of assigning id to random I want to assign it the newly generated name.
Here is my show method: