I have written the function in asp.net
function chkval(mval)
{
document.getElementById(”TextB… += mval;
}
This is a bit confusing because the questioner is asking about JavaScript but mentions ASP.NET, and because his question was truncated by Yahoo! Answers. However, I gather from this that what he wants is the ability to display, in a textarea, multiple selections from a select.
The issue here is that in JavaScript, there is no native function to provide all the indexes of multiple selections. If you try to call the selectedIndex property on a select box with multiple choices checked off, only the index of the first selected item will be returned.
However, JavaScript will tell us whether an item is selected in a multiple select, if we iterate through all the items in the select. We’ll use that fact to do what the questioner wants.
I fetch results with PHP by selecting a dates. I have a (lowerlimit) and (upperlimit). Ex.When i select Nov-2006, it displays all entries(journal) for the month of Nov in 2006 in a typical forum format.
So the user would have all those entries fields in plain view. The auto-increment-primary key field and the date field would be viewable but not editable.
Anywho, at the bottom of editentry.php when all the changes are made, there would be a “submit changes” button and a “delete entry” button.
What would the mysql command be to
a)resubmit
b)delete
tyvm
Let’s assume you have a table with four columns: The uniqueid field, a datetime field called mydate, a text field called myname and a text field called mytext.
From your menu page, you would simply list off the records in a table. A column on the left would be the edit link column, and a column at the right would be the delete column.