Try an underscore in the ID instead. Looks like jQuery is getting confused with the colon being a selector.
$(#test_name).mask() should be good enough On Sep 25, 11:28 pm, Faisal Basra <[EMAIL PROTECTED]> wrote: > Hi, I am unable to select the input filed based on ID, i am using JSF > and that append form id with the input id automatically. > > like this.... and > > <input type="text" id="test:name"> & how to select input > id(test:name) in jQuery the input field whose id is test:name > > The, complete code is given below..... Please anyone can help, will be > thankful. > > jQuery.noConflict();(function($) { > $(function() { > jQuery.mask.addPlaceholder('~','[+-]'); > $('#date').mask('99/99/9999'); > }); > > })(jQuery); > > <form id="test"> > <input type="text" id="test:name"> > </form>