J
James Black
If you go to http://dante.acomp.usf.edu/HomeworkAssistant/index.php you
will see my code.
Type in:
s = a + b and hit tab, and you will see the extra words.
How do I remove these?
Here is a snippet of my code:
var myvalue = targ.value;
if(myvalue.indexOf('=') > -1) {
myvalue = myvalue.substring(myvalue.indexOf('=') + 1);
}
var elements = myvalue.split(' ');
var lastvariable;
var variables = [];
var s;
for(var t = 0; t < elements.length; t++) {
s = elements[t];
targ is the element of the input tag.
s is the words in the array.
Thank you for your help.
will see my code.
Type in:
s = a + b and hit tab, and you will see the extra words.
How do I remove these?
Here is a snippet of my code:
var myvalue = targ.value;
if(myvalue.indexOf('=') > -1) {
myvalue = myvalue.substring(myvalue.indexOf('=') + 1);
}
var elements = myvalue.split(' ');
var lastvariable;
var variables = [];
var s;
for(var t = 0; t < elements.length; t++) {
s = elements[t];
targ is the element of the input tag.
s is the words in the array.
Thank you for your help.