javascript - How to highlight a filed cell when user clicks on a button -


i have build system allows clients complete questionnaire. in order complete questionnaire user has enter unique number pulls data different database using stored procedure.

anyway trying when client complete questionnaire , click on create id cell/fieldset highlighted know client has completed questionnaire.

still improving front end development bit of help. posted front end (view) code because work needs done.

can guide me with javascript/jquery

<fieldset style="width:1200px;">     <legend>storequestions</legend>     @html.hiddenfor(model => model.storeid)     <div class="editor-label">         <h3>what condition item in when received it? (1 - poor, 2 - standard, 3 - , 4 - excellent)</h3>     </div>   <input type="submit" value="create" class="button">  [httppost] [validateantiforgerytoken] public actionresult create(storequestions storequestions) {         if (modelstate.isvalid)         {             db.storequestions.add(storequestions);             db.savechanges();             return redirecttoaction("details", "questions", new { id = storequestions.questionsid });         }          return view(storequestions); } 

never tested code but:

<fieldset style="width:1200px;">     <legend>storequestions</legend>     @html.hiddenfor(model => model.storeid)     <div class="editor-label" style='background-color:@(model.id == theidofthequestion ? "blue" : "")'>         <h3>what condition item in when received it? (1 - poor, 2 - standard, 3 - , 4 - excellent)</h3>     </div>  <input type="submit" value="create" class="button">    [httppost]     [validateantiforgerytoken]     public actionresult create(storequestions storequestions)     {         if (modelstate.isvalid)         {             db.storequestions.add(storequestions);             db.savechanges();             return redirecttoaction("details", "questions", new { id = storequestions.questionsid });         }          return view(storequestions);     } 

you may wrap <div class="editor-label".. @foreach generate questions , theidofthequestion


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -