[wd_asp elements=’search’ ratio=’100%’ id=1]

Change CSS using JQuery in PHP

22nd April 2014

CSS

Css - Codehaven

Using PHP this code snippet will change the CSS by injecting the CSS via Jquery using PHP. This sounds very confusing, but usually used in conjunction with an Ajax request coming back.

$("#addnewsched").css({"display":"block"}); $(".nonefound").css({"font-size":"18px","font-weight":"bold"}); $(".search_results_activity_indicator").css("position", "absolute").css("z-index", 9999999); ';
?>

If you have problems try this

$(document).ready(function(){ $( '#notargets' ).css('display', 'none'); }); ";
?>