problem with jquery .hide() -
hey guys i've got simple problem jquery honest don't i'm doing wrong.
the jquery code looks that
$(".submit_twitter,.submit_url").hide(); $(".submit_url").show(); now expect see submit button class="submit_url", instead both submit buttons shown? ;(
using just
$(".submit_twitter").hide(); instead didn't work either.
edit:
i'm using right now:
$(".submit_twitter,.submit_url").hide(); $(".submit_url").show(); $(".url2,.notsignedin").hide(); $(".counter").hide(); it works far doesnt show classes "url2", "notsignedin" , "counter" submit classes shown. functions called extern .js file starts with:
jquery(document).ready(function() { ....... as see pretty strange why parts work , others dont.
edit 2 - fixed: ah found problem myself, had function using keyup event, there input length used show/hide submit_twitter button if (len > 140) hide button, else show button, function responsible showing button time len ofcourse less 140 characters.
- make sure used same class name on element , jquery selector (submit_twitter)
- make sure script executes after element added dom
Comments
Post a Comment