I currently have a form written in ASP that incorporates JQuery for handling two elements: an image upload and a datepicker. The code snippet responsible for the image upload functionality is
$(function() {
$("#wcpImage").makeAsyncUploader({
upload_url: "/Business/ImageUpload",
flash_url: '../../Scripts/swfupload.swf',
button_image_url: '../../Content/images/blankButton.png',
disableDuringUpload: 'INPUT[type="submit"]'
});
});
Utilizing an input element
<input type="file" id="wcpImage" name="wcpImage" />
.
The code segment implementing the Datepicker feature through the JQueryUI DatePicker widget is
$().ready(function() {
$('#Business_Work_Cover_Expiry_Date').datepicker({ dateFormat: 'dd/mm/yy' });
});
Using an input element generated by
<%= Html.TextBoxFor(m => Model.Business.Liability_Expiry_Date) %>
The datepicker pops up when users interact with the textbox for entering the expiry date. The issue I'm encountering is that the buttons for the image upload overlay on top of the datepicker.
I am wondering if I can resolve this problem using CSS z-index, and if so, how would I go about doing it?