dropdown lists click or not

dropdown lists click or not

I'm new to jquery and I 'm facing a prob since I have two dropdown lists and I want to accomplish the following:
I want,according to user's choices, some fields of my form to be completed. I do that with this code:
  1. <script type="text/javascript">
  2. $(document).ready(function() {

  3. $('#id_veh_id1').bind('click', function () {
  4. $('#id_veh_id2').bind('click', function () {

  5.  var val1 =$("#id_veh_id1").val();
  6.  var val2 =$("#id_veh_id2").val();

  7. $.get(""+val1+"/"+val2+"/", function(data) {

  8. vlength=data.veh_length;
  9. vwidth=data.veh_width;
  10. vheight=data.veh_height;
  11. v1type=data.v1_type;
  12. v2type=data.v2_type;

  13. document.getElementById('id_vlength').value=vlength;
  14. document.getElementById('id_vwidth').value=vwidth;
  15. document.getElementById('id_vheight').value=vheight;
  16. document.getElementById('id_type1').value=v1type;
  17. document.getElementById('id_type2').value=v2type;
  18. });
  19. });
  20. });
  21. });
  22. but I can't manage the situation when the user doesn't select anything from the second list. In that case with my code nothing happens. Instead I want only the choice of the first list to be considered and for val2 I want to pass a null/none value. What can I do?