Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reload stylesheet with out refresh page

jQuery(function($) {
    var $ed = $('#editor')
      , $style = $('#styles')
      , $button = $('#preview')
    ;
    $ed.val($style.html());
    $button.click(function() {
        $style.html($ed.val());
        return false;
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reload #stylesheet #refresh #page
ADD COMMENT
Topic
Name
3+2 =