Привет ВСЕМ, возник такой вопросик: Как изменить стандартную валидацию HTML5 для поля
{{ form_widget(form_main_search.searchString, {'attr': {'class': 'ads-title-widget'}}) }}
плагины Jquery не прокатывают.
<form action="{{ path('OmlookSearchBundle_setDealSearchParameters') }}" method="post" {{ form_enctype(form_main_search) }} id="contactForm">
<div class="span7 search-logo">
<ul class="clearfix">
<li class="search-google span"><a id="search-link-first" target="_blank" href="http://www.google.com" title="{%trans%}CB_BUTTON_SEARCH_GOOGLE{%endtrans%}"><img src="{{ asset('omlook/img/search/google.png') }}" alt="img_google"></a></li>
<li class="search-yandex span"><a target="_blank" href="http://www.yandex.ru" title="{%trans%}CB_BUTTON_SEARCH_YANDEX{%endtrans%}"><img src="{{ asset('omlook/img/search/yandex.png') }}" alt="img_yandex"></a></li>
<li class="search-mail span"><a target="_blank" href="http://go.mail.ru" title="{%trans%}CB_BUTTON_SEARCH_MAILRU{%endtrans%}"><img src="{{ asset('omlook/img/search/mail_ru.png') }}" alt="img_mail"></a></li>
<li class="search-bing span"><a target="_blank" href="http://www.bing.com" title="{%trans%}CB_BUTTON_SEARCH_BING{%endtrans%}"><img src="{{ asset('omlook/img/search/bing.png') }}" alt="img_bing"></a></li>
<li class="search-baidu span"><a target="_blank" href="http://www.baidu.com" title="{%trans%}CB_BUTTON_SEARCH_BAIDU{%endtrans%}"><img src="{{ asset('omlook/img/search/baidu.png') }}" alt="img_baidu"></a></li>
<li class="search-yahoo span"><a target="_blank" href="http://www.yahoo.com" title="{%trans%}CB_BUTTON_SEARCH_YAHOO{%endtrans%}"><img src="{{ asset('omlook/img/search/yahoo.png') }}" alt="img_baidu"></a></li>
</ul>
</div>
<div class="search-all">
<div class="search span" >
{{ form_widget(form_main_search.searchString, {'attr': {'class': 'ads-title-widget'}}) }}
{{ form_widget(form_main_search._token, {'attr': {'class': 'text validation noempty', 'id': 'title'}}) }}
</div>
<div class="search span">
<button type="submit" name="login" title="" class="btn btn-info btn-large span" style=""><i class="icon-search icon-white"></i> {%trans%}UB_BUTTON_LOOK{%endtrans%}</button>
</div>
</div>
<div class="new-used span7">
<div class="pull-left">
{{ form_widget(form_main_search.dealProductState, {'attr': {'class': 'span3'}}) }}
</div>
<a href="{{ path('OmlookSearchBundle_search')}}" class="advanced-search pull-right" title="">{%trans%}UB_BUTTON_ADVANCED_SEARCH{%endtrans%}</a>
</div>
</form>
Спасибо.