I create a html control on AX.
And the text as below.
How i get the value from the html, so that i can update my table records.
public void init()
{
str text = @"
<html>
<head>
<script type='text/javascript'>
<!--
function puls(textId) {
var text = document.getElementById(textId).value;
document.getElementById(textId).value = Number(text) + 1;
}
function reduce(textId) {
var text = document.getElementById(textId).value;
document.getElementById(textId).value = Number(text) - 1;
}
//-->
</script>
</head>
<body>
section1:
<input type='button' onclick='puls("T1")' value='+' />
<input size = '2' type='text' Id='T1' value='0'/>
<input type='button' onclick='reduce("T1")' value='-' />
</br>
section2:
<input type='button' onclick='puls("T2")' value='+' />
<input size = '2' type='text' Id='T2' value='0'/>
<input type='button' onclick='reduce("T2")' value='-' />
</br>
</body>
</html>";
super();
Html.setText(text);

*This post is locked for comments
I have the same question (0)