Skip to content

Instantly share code, notes, and snippets.

@petros
Created December 22, 2010 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petros/752172 to your computer and use it in GitHub Desktop.
Save petros/752172 to your computer and use it in GitHub Desktop.
Part of application.js
//update rooms/price
for ( i=1; i<=info.rooms; i++){
roomsHTML += '<option value="' + i + '">' + i + ( (i==1)?' Room':' Rooms' ) + '</option>';
}
$('#reservation-system select.rooms-quantity', $content).html(roomsHTML);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment