I work on asp.net razor page i face issue i can't add title for div class container and title must be with top border
exactly as field set and legend
so how to apply title to be part from top border using html and css and jquery
Classes
and to fill div class container and classlist with data i use jquery below
$('#btnDisplay').click(function (event) {
event.preventDefault();
$('#classesContainer').attr('title', 'Classes');
var dropdown = $('#accountclassname-select');
dropdown.empty();
$.ajax({
url: '?handler=AccountClassName',
type: "GET",
dataType: "json",
success: function (response) {
$('#classesContainer').show();
$('#classesList').html(''); // Clear existing classes
$('#classesList').append(' All
');
$.each(response, function (i, classes) {
var checkbox = $('');
var span = $('' + classes.classAccountName + '');
var listItem = $('').append(checkbox, span);
$('#classesList').append(listItem);
});
}
});
});
so how to assign title for div classcontainer ?
Jignesh KumarPosted Feb 28, 2024, 3:55 AM
Hello Ahmad salah,
Please use
. If you wish to set it dynamic then take one span for(Title of the container) and assing from Jquery.