I have two types of links in my webpage:
<div id="mybookings">
<a name="type1ID" href="4007" class="booking-deleteDraft">Delete Me</a>
<a name="type2ID" href="9001" class="booking-deleteDraft">Delete Me</a>
</div>
I am writing an ajax submit and need to include the correct data in the POST. How do I ask JQuery to do the following:
    $("#mybookings").on('click', '.booking-deleteDraft', function (e) {
    e.preventDefault();
     data: {
             Type1ID: $(this).attr("href").val() // This gets the value of the href, but it should only get it where the name attribute is "type1"
             Type2ID:  $(this).attr("href").val() // This gets the value of the href, but it should only get it where the name attribute is "type2"
           },
.....
How do I get the the correct values into the Type1ID and Type2ID parameters?
 
     
     
     
     
     
    