Ann K
asked on
Error in script
Can you tell me how to remove this error?
@{
ViewBag.Title = "Index";
}
<h2>Master details entry form</h2>
<div class="container">
<div class="master">
<h2>Order</h2>
<table class="table table-responsive">
<tr>
<td>Order No</td>
<td>
<input type="text" id="orderNo" class="form-control" />
<span class="error">Order no required</span>
</td>
<td>Order Date</td>
<td>
<input type="text" id="orderDate" class="form-control" />
<span class="error">Valid order date required (ex: MM-dd-yyyy)</span>
</td>
</tr>
<tr>
<td>Description</td>
<td colspan="3">
<textarea id="description" class="form-control"></textarea>
</td>
</tr>
</table>
</div>
<div class="details">
<h2>
Order items
</h2>
<table class="table table-responsive">
<tr>
<td>Category</td>
<td>Product</td>
<td>Quantity</td>
<td>Rate</td>
<td> </td>
</tr>
<tr class="mycontainer" id="mainrow">
<td>
<select id="productCategory" class="pc form-control" onchange="LoadProduct(this)">
<option>Select</option>
</select>
<span class="error">Select Category</span>
</td>
<td>
<select id="product" class="product form-control">
<option>Select</option>
</select>
<span class="error">Select product</span>
</td>
<td>
<input type="text" id="quantity" class="quantity form-control" />
<span class="error">Valid quantity required</span>
</td>
<td>
<input type="text" id="rate" class="rate form-control" />
<span class="error">Valid rate required</span>
</td>
<td>
<input type="button" id="add" value="add" style="width:80px" class="btn btn-success" />
</td>
</tr>
</table>
<div id="orderItems">
<table class="table table-responsive" id="orderdetailsItems"></table>
<span id="orderItemError" style="color:red"></span>
</div>
<div style="padding:10px 0; text-align:right">
<input id="submit" type="button" value="Save Order" class="btn btn-warning" style="padding:10px 20px" />
</div>
</div>
</div>
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" />
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="~/Scripts/myScripts.js"></script>
<script type="text/javascript">
$(function () {
$('#orderDate').datepicker({
dateFormat: 'mm-dd-yy'
})
})
</script>
<style>
span.error{
display:block;
visibility:hidden;
color:red;
font-size:90%;
}
tr.error{
background-color:rgba(255,0,0,0.35);
}
</style>
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Don't I get any credit for correcting the other two errors you had?
ASKER
OOps. I am sorry I mistakenly select me instead of you. I don't know how to fix that.
Please click on Request Attention and request that the question be reopened and split the points between David and myself.
Thank you.
Thank you.
ASKER
I just did it. Sorry again. Drink too much because of happy new year.
Not a problem Ann K, thank you.
<link rel="stylesheet" href="//code.jquery.com/ui
<script src="//code.jquery.com/ui/
<script src="~/Scripts/myScripts.j
To this
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css" />
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
As for the last line above the directory Scripts does not have a file called myScripts.js. Find the location and change the path in the line.