Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save leonguyen/9500300 to your computer and use it in GitHub Desktop.

Select an option

Save leonguyen/9500300 to your computer and use it in GitHub Desktop.
foreach list option
<% if(typeof(lstComp)!='undefined'){ lstComp.forEach(function(ml){ %>
<option value="<%=ml.cId?ml.cId:''%>" <%=ml.cId&&typeof(mr)!='undefined'&&ml.cId==mr.cId?'selected="selected"':''%>><%=ml.cCode?ml.cCode:''%></option>
<% });}//lstComp %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment