I am having problems with some JavaScript in a form I am putting together. I require the script to set the value of the text field 'mla6' in the form 'cq' to the combined total of the values in 'mla2' and 'mla4'.

Firat Tiryaki

Well, "+" is used for combining string values too. You should get the integer value of the fields;

there is a function written as "parseInt(value)" in javascript but it doesn't work in old mac browsers, so it's better to use javascript flexibility in data types.

Simply multiply a value with "1" to get it's integer value, It will be as follows in your code


try it and see the result.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact