I have tried below code:
- Set the value in search text box
jQuery("#inplaceSearchDiv_WPQ2_lsinput").val("med");
- Trigger Enter key:
var e = jQuery.Event("keypress");
e.which = 13
e.keyCode = 13
jQuery('#inplaceSearchDiv_WPQ2_lsinput').focus();
jQuery('#inplaceSearchDiv_WPQ2_lsinput').trigger(e);
But enter key is not triggering by above code, please help me on it