Skip to content

Instantly share code, notes, and snippets.

@vishnu-saini
Created July 31, 2018 09:53
Show Gist options
  • Save vishnu-saini/cc46d026df2555bc3fbc38fc9622659a to your computer and use it in GitHub Desktop.
Save vishnu-saini/cc46d026df2555bc3fbc38fc9622659a to your computer and use it in GitHub Desktop.

To Fill up the timesheet

$("select option[value='357815']").attr("selected", "selected");
$( "#content-ts tr td select" ).trigger( "change" );
$("select option[value='159087']").attr("selected", "selected");
$("#content-ts tr td:nth-child(12) input").attr("value","09");

Note : Here 357815 is project id which is 'struts upgrade' and 159087 is task id which is 'developement'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment