Hi,
I have Two text boxes which are hide when it's in a list. After Clicking Edit, I would like to show the text boxes visible.
From the below code when I say the text box "visible" it displays accordingly. But I need to show the text boxes when it's in a edit mode.
Please help me how to visible/show when i click the button.
- show the text boxes after i click the "Edit" button
- hide the text boxes after I click the "save" button.
Thanks for reading and help would be great.
@model IEnumerable
| Name | Area | Beginning Date | End Date | |
|---|---|---|---|---|
| @n.Name | @n.Area | @n.BDate | @n.EndDate |
Nga AranPosted Apr 7, 2014, 1:19 AM
Jignesh TrivediPosted Apr 7, 2014, 1:04 AM
hi,
In you above Javascript code you hide whole dive and make visible control in that div....
so I think this problem your code not working...
function ShowEdit(par) {
$("#divBDate-" + par).attr("class", "visible");
$("#txtBDate-" + par).attr("class", "visible");
$("#divEDate-" + par).attr("class", "visible");
$("#txtEDate-" + par).attr("class", "visible");
$("#btnEdit-" + par).attr("class", "visible");
$("#btnSave-" + par).attr("class", "visible");
}
hope this will help you...