Giuliano showed you the correct way to hide the div.

But If you do want to add that css to the element it would be used like
this.

$(document).ready(function(){
    $("#durl").css({ display:none;  });
 });


On Sat, Jun 7, 2008 at 3:50 PM, Giuliano Marcangelo <
[EMAIL PROTECTED]> wrote:

> make sure you use the* # *sign to signify that it is an element with an *
> id* of durl, and then *hide *it ........................
>
> $(document).ready(function(){
>        $("*#*durl").hide();
>    });
>
> 2008/6/7 mark <[EMAIL PROTECTED]>:
>
>
>> hi, am just beginning with jquery, and i want to hide a div to begin.
>> i tried this and it doesnt work and it is not hidden. do you know what
>> is wrong?
>> i also tried,         $("durl").css("display","none");
>>
>> is this wrong?
>> thanks
>>
>>
>>
>> <html>
>> <head>
>>  <script type="text/javascript"
>> src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js";></script>
>>  <script type="text/javascript">
>>    $(document).ready(function(){
>>        $("durl").style.display="none";
>>    });
>>  </script>
>> </head>
>> <body>
>>
>> <div id="durl" >
>>   <p>
>>     <label for="curl">URL</label>
>>     <input id="curl" name="url" size="25" class="required"  type="text" />
>>   </p>
>> </div>
>> </body>
>> </html>
>>
>
>

Reply via email to