I have an index page where I have a Create Button. On click of the create button it opens a new view called CreateStudent
View where i have multiple bootstrapp tabs. Each tab contails a button on it.
Index view : Button
<div class="row">
<div class="col-md-6 text-right"><a class="btn btn-default CreateMe" href="/MyProject/StaffCreate" role="button">Create New</a></div>
</div>
And the CreateStudent
View has a button LogOnAdd
on one of the tab:
<div class="row">
<div class="col-md-8 text-right">
<a class="btn btn-default LogonAdd" id="LogonAdd" href="#" role="button">Add </a>
</div>
</div>
Using the below jquery I an trying to disable the LogOnAdd
button.
$('.CreateMe').click(function () {
$(".LogonAdd").attr("disabled", true);
});
But the above jquery code is not working. The button is not getting disabled. Can some body guide me what mistake I have made in the jquery.
I am using vs 2010 and mvc4 .
I doubt whether it is failing to find the control.