x$ jQuery selector for XPages


//function is called using x$("#{id:inputText1}", " parameters").

function x$(idTag, param){ //Updated 18 Feb 2012
   idTag=idTag.replace(/:/gi, "\\:")+(param ? param : "");
   return($("#"+idTag));
}

All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
1 comment(s)Login first to comment...
Martin Rolph
(at 16:11 on 08.02.2013)
I wish I found this 5 hours ago! Great snippet