更新时间:2023-11-28 21:55:22
( #LstSignInAuthority);
if(bkLst!==){
(document).ready(function(){
('#btnAdd')。点击(function(e){
var name =
I am adding text box items in list box on click of add button,it is working but in between two items it is some space,the empty space considering as item.how to avid this using jquery.
here is my code
What I have tried:
function Addbook() {
var bkLst = $("#LstSignInAuthority");
if (bkLst !== "") {
$(document).ready(function () {
$('#btnAdd').click(function (e) {
var name = $("#Book_Name").val();
$('#LstSignInAuthority').
append($("<option></option>").
attr("value", name).
text(name));
$("#Book_Name").val("");
$("#Title").val("");
$("#Book_Category_Name").val("");
});
});
}
}
("#LstSignInAuthority");
if (bkLst !== "") {
(document).ready(function () {
('#btnAdd').click(function (e) {
var name =