Well, I would assume that will be done with server-side code: PHP/JSP/ASP...whatever you are using. After they make all their choices and submit the <form> to your server-side code. It shouldn't have anything to do with JavaScript.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
You should *NOT* be using <form action="mailto:...">
Only about 60% or so of people will be able to use your site when you do that.
You *NEED* a form mailer that is written in SERVER-SIDE code.
And the general answer to your question is "No." MAILTO: is a horrible way to send mail, not only for the reason I gave above but also because of the lack of control.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
That works, but it is clumsy code, depending on the option number to choose which to display. And then, on top of that, needing a separate IF for each option. Ugh.
Oops...didn't know you wrote it. **BLUSH** I guess I need to be more circumspect in my opinions. I'll buy you a latte to help make up. You can collect next time you are in Seattle area.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Oops...didn't know you wrote it. **BLUSH** I guess I need to be more circumspect in my opinions. I'll buy you a latte to help make up. You can collect next time you are in Seattle area.
Not a problem. Since you have 10X the number of posts and 10X the number of thanks, I believe you can be forgiven for my lack of experience at the time. In fact, I'm not sure I am that much better now as I have learned over time that I am never too old to learn a new way of being stupid!
guys, please help me because i didn't find any solution for this problem.
I cannot make the 2 option fields work togheter, only 1 option field is working. Then other one is not showing the divs. If you try this code you will see the the option field from the right is working. Probably is something caused by the javascript. I've tried the body onload option but it's not working. Can you help me? Thank you!
Here is the code:
<html>
<head>
<title> New Document </title>
<body onload="dothat();">
<script src="http://code.jquery.com/jquery-1.4.4.js"></script>
<script type="text/javascript">
function dothat() {
var div_id = $("#choice").val();
if (div_id == 0) {
$("#div1").hide();
$("#div2").hide();
$("#div3").hide();
};
if (div_id == 1) {
$("#div1").show();
$("#div2").hide();
$("#div3").hide();
};
if (div_id ==2) {
$("#div1").show();
$("#div2").show();
$("#div3").hide();
};
if (div_id == 3) {
$("#div1").show();
$("#div2").show();
$("#div3").show();
};
}
</script>
<div id='div11'>div11
<br><input type="checkbox" name="service" value="titrare" /> A fost reglata concentratia de aditiv de clatire
<br><input type="checkbox" name="service" value="titrare" /> Au fost verificate bratele de spalare/clatire</div>
<div id='div22'>div22
<br><input type="checkbox" name="service" value="titrare" /> Masina de spalat este plina de calcar
<br><input type="checkbox" name="service" value="titrare" /> Masina de spalat este foarte murdara</div>
<div id='div33'>div33
<br><input type="checkbox" name="service" value="titrare" /> Masina de spalat nu functioneaza corespunzator
<br><input type="checkbox" name="service" value="titrare" /> Masina de spalat nu functiona la momentul vizitei</div>