I’m struggling to find an example where one uses some JSON data result and set a paragraphs’ text to it.
This is my JSON result…
[{"availability":58.2,"oee":44.5,"performance":41.2,"quality":68.9}]
All I want to do is set the paragraphs’ text equal to the “oee” result.
This is what I’ve tried so var, but it’s not working. Don’t know why cause there are no JavaScript errors showing up in the Java Debugger that I’m using.
<script type="">
$(document).ready(function () {
$.getJSON("http://....../mesmobileservice/MESService.svc/JSON/data/macid=1", function (data) {
$("#mac001OEE").text($(this).data("oee"));
});
});
This is for a simple Kendo UI app.
Thanks 🙂
1 Answer