how can i do this using java script
hi ,
i have four textboxes, and a hyperlink. 4 textboxes contain some text.when user changes the text, i have track it(this i ahve done using onChange event).But how can i store the value of the textboxes in a variable on clicking the link using javascript?
Thanks and Regards
Vivek.s
Re: how can i do this using java script
<html>
<head>
<title></title>
<script>
function ProcessClick(){
var sOne;
sOne = frmOne.txtOne.value;
alert(sOne);
}
</script>
</head>
<body>
<form name = "frmOne">
<input type = "text" name = "txtOne">
</form>
<br>
<a href = "#" OnClick = "ProcessClick();return false;">Process Link</a>
</body>
</html>
Re: how can i do this using java script
hi,
Thanks a lot!
i am using cold fusion, i ahve got the javascript value, so how can i check it in coldfusion and process further?
this is my code as of now
function setFlag(target)
{
<cfif target.name neq "sadasd">
alert("hello");
</cfif>
}
but this throws a error in coldfusion since it is not its variable, so how can i check?
also i have got some form varaibles from previous page, how can i set them the new values using javascript?
thanks and regards
vivek.s