I am using a jQuery plugin called jqtransform
This plugin uses JavaScript to apply CSS styles to form elements.
The problem is the following scenario:
Create a search page with advanced search. When the page loads, the div called "advancedSearch" is hidden, and it will only show if the user will click on the element. Inside the div # advancedSearch, I have several form elements.
However, if I hide the div # advancedSearch with the CSS: "diplay: none;" style, the jqtransform plugin does not work correctly with hidden elements. So my solution was to hide the advanced div # search with JavaScript. It really works, and it doesn't matter if it is executed after the document is ready or not.
But ... using a JavaScript solution, div # advancedSearch remains visible for a couple of milliseconds ... which is visually annoying.
So I was wondering if there would be a solution to this problem in CSS or a fix for the jqtransform plugin, or even find a way to immediately hide the div # advancedSearch with JS, which would be hidden right away.
UPDATE 1
( , <% =% > ASP.Net, )
$('.toggleAdvancedSearch').click(function() {
$('#advancedSearchWrap').slideToggle(250);
$('form.jqtransform').jqTransform({ imgPath: '<%= ResolveClientUrl("~/masterpages/img/jqtransform/") %>' });
return false;
});
2
, :
, "applyStyle", onClick $('form'). jqTransform();
$('form'). jqTransform(); .
a # applyStyle, div # advancedSearch , .
div # advancedSearch a # applyStyle , .
, $('form'). jqTransform(); , # # applyStyle.
, : , div # advancedSearch, , div, div # advancedSearch.
, ( ).
PS: , .