try using proper syntax for the if else's
Code:
if (1==1){
//do something
}
else if (1==2) {
//do something else
}
else if (1==3) {
//do something
}
else {
d/do soemthign if no other value is met
}
alos you should change the first line from
Code:
$("#createorder").click(function() {
to this
Code:
$("#createorder").click(function(e) {
e.preventDefault();
and remove the return false