Wednesday, April 15, 2020
JavaScript Radio button validation
var option=document.getElementsByName('Gender');
if (!(option[0].checked || option[1].checked)) {
alert("Please Select Your Gender");
return false;
}
source https://stackoverflow.com/questions/10339073/radio-button-validation-in-javascript
if (!(option[0].checked || option[1].checked)) {
alert("Please Select Your Gender");
return false;
}
source https://stackoverflow.com/questions/10339073/radio-button-validation-in-javascript
Tuesday, April 14, 2020
How to get JavaScript variable in a JSP scriplet
<html>
<script>
function call()
{ var name = "Gautam";
window.location.replace("Demo2.jsp?name=" + name);
}
</script>
<input type="button" value="Get" onclick='call()'>
<%
String name = request.getParameter("name");
if (name != null)
{
out.println(name);
}
%></html> source: https://stackoverflow.com/questions/22922245/get-javascript-variable-value-in-jsp-scriptlet
<script>
function call()
{ var name = "Gautam";
window.location.replace("Demo2.jsp?name=" + name);
}
</script>
<input type="button" value="Get" onclick='call()'>
<%
String name = request.getParameter("name");
if (name != null)
{
out.println(name);
}
%></html> source: https://stackoverflow.com/questions/22922245/get-javascript-variable-value-in-jsp-scriptlet
Subscribe to:
Posts (Atom)
-
Assuming you are working with a newly returned ResultSet whose cursor is pointing before the first row, an easier way to check this is to...
-
//The HTML index page <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change ...
-
Here are some links to online work sites https://www.upwork.com/ https://www.guru.com/ https://studio.envato.com/freelance-switch/ htt...