depend rule

depend rule

Hi,

I have  form with the several input fields .  
The field name partNo with value of being entered from the customer with either of of the value below. 
28D1G1-213C11 H000S0
78E1K0-298A11 J000S0
20D2K3-238C21 G000S0
52D1J0-274A11 E000S0

 Depends on the value above and takes left 14 characters
first one is  H
scond one is J,
third one is G
fourth one is E

<form action ="" method="post">
partNo: <input type ="text" name="partNo" id="partNo"><br>
field 1: <input type ="text" name="field1" id="field1"><br>
field 2: <input type ="text" name="field1" id="field2"><br>
fiel 3: <input type ="text" name="field1" id="field3"><br>
field 4: <input type ="text" name="field1" id="field4"><br>
</form>


if find H, then field 1 is required 
elseif find J, then field 2 is required
elseif find G then fiel 3 is requied
elseif fiend E then field 4 is required.

How can i complished this on jquery?

thanks