I have been racking my brain trying to get a simple if statement inserted into DetailView.html that can check the a database value to see if it is empty and if so, do something........the reason I am being general about it is because I have multiple conditional statements I would like to put in.
Example:
if (database_value == '1')
{
code to be executed if condition is true
}
else
{
code to be executed if condition is not true
}
I am not a javascript expert, but where do I need to put my my script code......Can it be inline or do I have to call it externally. What files do I need to look in? Any examples?
I think one of the issues I am having is working around the database values that are in tables.
Any help would be greatly appreciated.
Thanks Erin


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks