Jump to content

no click until php code loads


MDanz

Recommended Posts

i tried this but now the onclick is not working.  I want the function ShowContent only be able to run when the document(php) has loaded.

 

$(document).ready(function(){
  $("block").click(

				function ShowContent(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);

AssignPosition(dd);

dd.style.display = "block";

}


				);
});

$(document).ready(function () {
    $("block").click(function ShowContent(d) {
        if (d.length < 1) {
            return;
        }
        var dd = document.getElementById(d);
        AssignPosition(dd);
        dd.style.display = "block";
    });
});

If you are using jQuery I suggest you take a look at jQuery() and css()

 

What does the html (when you click view source in the browser) look like?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.