I trying to parse html-page with html agility pack, and I want to get some value from element, but this value setted in knockout model.
//...
function jsCycle(cycleid /* another variables */) {
this.CycleYearID = ko.observable(cycleid);
/* another variables */
};
var c1 = new jsCycle('1edb0cc2-82af-e211-896a-3c4a92dbdc51'/* another variables */);
ko.applyBindings(c1, $('#BoundCycleAreaOne')[0]);
jsModel.cycles.push(c1);
//...
I can get '#BoundCycleAreaOne'
element:
var period = document.QuerySelectorAll("#BoundCycleAreaOne");
but also I need his CycleYearID
. How I can get it?