Ok I'm working with Jquery, I really like it , it looks easy and powerful.
I have an issue here. I'm trying to change one CSS property from Jquery. This 'add-photo-mw' has pre-defined 'display:none'. Below is the code.
<%= link_to 'Add photo', adding_photo_path(current_user), class:'css3button', :id => 'add-photo-mw'%>
When this link is tiggered <%= link_to 'Go to Gallery', loading_gallery_path, class:'css3button', :id => 'show-add' %> the following Jquery code is launched.
$(document).ready(function(){
$('#show-add').click(function(){
$('#add-photo-mw').css('display','inline');
});
} );
Everything looks good, when the link is selected the link_tag is showed in the browser, but secods later the link is hide again. You know why is this happening?.
Thanks & regards.
Alfredo.