View Single Post
Old 01-27-2013, 12:47 AM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
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
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users

Last edited by DanInMa; 01-27-2013 at 12:53 AM..
DanInMa is offline   Reply With Quote