Hi,
How can i submit my text field values, Just alert the values in “processClick” function
var viewModel = {
participants: ko.observableArray(),
viewShown: function () {
var event_id = "4";
var selectPartiNo = '2';
var str = '';
var NoPrticiField;
var participants = [];
for (var NoPrticiField = 1; NoPrticiField <= selectPartiNo; NoPrticiField++) {
participants.push({
NoPrticiField: NoPrticiField,
empname: ko.observable(),
designation: ko.observable(),
email: ko.observable()
});
}
viewModel.participants(participants);
},
processClick: function () {
// Here i want how to submit my filed values just alert the result
}
};
<div id="registrationWrap">
<div data-bind="foreach: participants">
<p style="font-weight:bold;color:#039;" data-bind="text: 'Participant ' + NoPrticiField"></p><br/>
<b>Full name:</b><input data-bind="value: empname"><br/>
<b>Designation :</b><input type="text" data-bind="value: designation"><br/>
<b> Email :</b><input type="text" data-bind="value: email"><br/>
</div>
<div class="button" data-bind="dxButton: { text: 'Click me', clickAction: processClick }"></div>
</div>