sean04 Posted April 9, 2010 Share Posted April 9, 2010 How would I go about writing a script where once you hover over an entire fieldset, I little icon appears and says "edit". Quote Link to comment Share on other sites More sharing options...
JustLikeIcarus Posted April 9, 2010 Share Posted April 9, 2010 One way would be to use jquery and do something like this. $("fieldset").hover( function () { $(this).find(".edit_link").show(); }, function () { $(this).find(".edit_link").hide(); } ); Quote Link to comment Share on other sites More sharing options...
sean04 Posted April 9, 2010 Author Share Posted April 9, 2010 Thanks! and what exactly would .edit_link be? Quote Link to comment Share on other sites More sharing options...
JustLikeIcarus Posted April 9, 2010 Share Posted April 9, 2010 In this example you would give that class to whatever element you want to show/hide. Quote Link to comment Share on other sites More sharing options...
sean04 Posted April 9, 2010 Author Share Posted April 9, 2010 Like a stylesheet class? or like <div class = "edit"><a href = "...">EDIT</a></div> Sorry, I'm not to familiar with it. Quote Link to comment Share on other sites More sharing options...
JustLikeIcarus Posted April 9, 2010 Share Posted April 9, 2010 Its a class like in css. Just give your element class="edit_link" or whatever. Take a look at the jquery website, you'll get the hang of it pretty quickly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.