Posts by Victor Matheus Mendes • 71 points
2 posts
-
2
votes3
answers611
viewsA: Calculating in Table Fields with JS
function fctprecovenda(form) { var table = document.getElementById('tabvenda'); var percentual = parseFloat(form1.percentual.value); for ( var i = 0; i < table.rows.length; i++ ) { var valprod =…
-
5
votes3
answers296
viewsA: Function that converts this string to a json
var s = 'a=123 b="ABC" c="Olá Mundo!"'; var obj = {}, parcial = '', inString = false, isProp = true, conteudo = '', prop = ''; for (i = 0; i < s.length; i++) { var atual = s[i]; if(atual=='"'){…