I have three fields on JSP Update page userid, name and ssn.. I would like to have simple dialog box saying "You already have ssn, are you 开发者_如何学Csure you want to modify it?" depending on the user's yes or no response than it performs the task? Is there a way I can add something on my java code to make this happen.. any help would be great.. thank you..
You should use java script for this.
<script type="text/javascript">
var response = confirm ("You already have ssn, are you sure you want to modify it?")
if (response){
//do yes task
}else{
//do no task
}
</script>
精彩评论