Hi guys,

I have these JavaScript codes below, please help me convert this into jQuery without using a plugin.
<!DOCTYPE html>
function validateForm()
var x=document.forms["myForm"]["fname"].value;
if (x==null || x=="")
  alert("First name must be filled out");
  return false;

<form name="myForm" action="demo_form.asp" onsubmit="return validateForm()" method="post">
First name: <input type="text" name="fname">
<input type="submit" value="Submit">

This is basic.
I hope some one will help.

Thanks in advance.