[Solved] add css class using jQuery for input type text - problem Formbuilder
Posted: Thu Sep 23, 2010 1:52 pm
Hi all, I'm tried add css class for input type=text using jquery.
My code:
{literal}
$(document).ready(function() {
$('input[type="text"]').addClass("blablabla");
});
{/literal}
Unfortunelly, I dont know why using this script I can't add any class for input fields in Formbuilder.
This code great works with example FrontEndUser forms? All input[type="text] have added class "blablabla".
Thanks for your help.
Marek A.
PS> This problem is when I load any form in modal window, pop-up window, using some javascript.
If form is in page code my script works fine, sorry that I didn't checked it erlier. But now is problem, how do this in modal window?
My code:
{literal}
$(document).ready(function() {
$('input[type="text"]').addClass("blablabla");
});
{/literal}
Unfortunelly, I dont know why using this script I can't add any class for input fields in Formbuilder.
This code great works with example FrontEndUser forms? All input[type="text] have added class "blablabla".
Thanks for your help.
Marek A.
PS> This problem is when I load any form in modal window, pop-up window, using some javascript.
If form is in page code my script works fine, sorry that I didn't checked it erlier. But now is problem, how do this in modal window?