diff --git a/components/user-mgt/org.wso2.carbon.user.mgt.ui/src/main/resources/web/userstore/user-role-search.jsp b/components/user-mgt/org.wso2.carbon.user.mgt.ui/src/main/resources/web/userstore/user-role-search.jsp
index ff1c15fe8d..3d44d25a87 100644
--- a/components/user-mgt/org.wso2.carbon.user.mgt.ui/src/main/resources/web/userstore/user-role-search.jsp
+++ b/components/user-mgt/org.wso2.carbon.user.mgt.ui/src/main/resources/web/userstore/user-role-search.jsp
@@ -283,7 +283,7 @@
pageNumber = "0";
}
- if (doValidateForm($("#id_search"), '')) {
+ if (doValidateForm($("#id_search")[0], '')) {
var category = $("input[name=radio_user_role]:checked").val();
$.ajax({
url: "/userandrolemgtservice?category=" + category + "&pageNumber=" + pageNumber,