change inpu type via php

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
User avatar
New php-forum User
New php-forum User
Posts: 25
Joined: Fri Sep 14, 2012 12:06 am

Re: change inpu type via php

Post by TomCornar » Sun Sep 16, 2012 10:58 pm

Try with js or jquery to sum up the two text box value to another textbox using onclick event.

<script type="text/javascript">
function sum()
var value1=document.getElementById('textone').value;
var value2=document.getElementById('texttwo').value;
<form method="post" action="">
<input type="text" id="textone">
<input type="text" id="texttwo">
<input type="text" id="textthree">
<input type="submit" onclick="sum();">
Hope this Helps.
Tom Cornar
Trinay Technology Solutions

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests