semax
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Calculated Fields Form] get value from calculated field and give to my divForum: Plugins
In reply to: [Calculated Fields Form] get value from calculated field and give to my divi add 2 strings and this works!!!
2 strings:var totleval = document.getElementById("total-summ"); - get element what i need totleval.innerHTML = v; - give value to my elementfull fragment:
val: function(raw) { raw = raw || false; var e = $( '[id="' + this.name + '"]:not(.ignore)' ); if( e.length ) { var v = e.val(); var totleval = document.getElementById("total-summ"); if(raw) return $.fbuilder.parseValStr(v, raw); v = $.trim( v ); v = v.replace( new RegExp( $.fbuilder[ 'escape_symbol' ](this.prefix), 'g' ), '' ) .replace( new RegExp( $.fbuilder[ 'escape_symbol' ](this.suffix), 'g' ), '' ); totleval.innerHTML = v; return $.fbuilder.parseVal( v, this.groupingsymbol, this.decimalsymbol ); } return 0; } } );Forum: Plugins
In reply to: [Calculated Fields Form] get value from calculated field and give to my divin js code i found this fragment:
raw = raw || false; var e = $( '[id="' + this.name + '"]:not(.ignore)' ); if( e.length ) { var v = e.val(); if(raw) return $.fbuilder.parseValStr(v, raw); v = $.trim( v );help me to convert this code to jquery, i need to display this value in another div
Viewing 3 replies - 1 through 3 (of 3 total)