Hi, Morningz I am thankful to your solutions and it really does work for me.
But, now situation comes like that i have mask against input fields and i stored them in database. just only input field id and mask. But no information of FORM. And, at runtime we don't want to hard code how many forms will be there. the only information is input field id. And at runtime input field id is generated by framework is concatenated with formid:inputid, and i want to select it just by inputid.... i thinks so you understand..... On Sep 29, 5:19 pm, MorningZ <[EMAIL PROTECTED]> wrote: > did you bother to read the previous replies?? > > both have the answer (and similar examples) > > On Sep 29, 2:40 am, Faisal Basra <[EMAIL PROTECTED]> wrote: > > > Please, can i have any way in jQuery to just by specifying id like > > (#phone) to get form:id ............... > > > On Sep 25, 6: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>