View Single Post
Staro 13.01.2015., 22:10   #11
Aleksandar /
Registered User
Moj komp
 
Datum registracije: Jan 2015
Lokacija: Beograd
Postovi: 14
Evo sada sam ovako napisao:

HTML:
// ==UserScript== 
// @name          jQuery Example 
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js 
// ==/UserScript==  
// Append some text to the element with id someText using the jQuery library.4 
$(document).ready(function(){ 
 var id_a = document.getElementById("a");
 id_a.style.opacity="none"; id_a.innerHTML = "<div>prvi tekst</div>"; 
id_a.style.display= "block"; event.preventDefault(); 
 });
i isto, kada prvi put otvara ništa se ne dešava, tek kada otvorim i osvežim ono radi . Prvi put nikako neće.

Zadnje izmijenjeno od: Aleksandar /. 13.01.2015. u 22:22.
Aleksandar / je offline   Reply With Quote