i have one textbox and one button
i put value first in this textbox (ex: 1234)
it added and show in another textbox
output like that:
(ex:
1. 1234)
again i added the valur in the textbox ( txtPrevPol)( ex :3456)
show it in the txtPrevPolList
output:
(ex:
1. 12342. 3456 )
i am doing this using the following script:
var cnf = $.noConflict();
var count = 1;
cnf('#<%=btnPAdd.ClientID%>').click(function () {
var txt = cnf('#<%=txtPrevPol.ClientID%>').val();
if (txt != '') {
cnf('#<%=txtPrevPolList.ClientID%>').append((count++) + ':' + txt + '\n');
cnf('#<%=txtPrevPol.ClientID%>').val('');
return false;
}
});
var txt = cnf('#<%=txtPrevPol.ClientID%>').val();
if (txt != '') {
cnf('#<%=txtPrevPolList.ClientID%>').append((count++) + ':' + txt + '\n');
cnf('#<%=txtPrevPol.ClientID%>').val('');
return false;
}
});
when i fetch all values from the textbox (
txtPrevPolList
(ex:
1. 12342. 3456 ) )
to save it into the database
i cannot get the values from the textbox
Midhun TpPosted Aug 2, 2017, 2:09 AM
Midhun TpPosted Aug 2, 2017, 4:48 AM
Pooja ChowdhuryPosted Aug 2, 2017, 3:36 AM