This shouldn’t be too difficult but for the life of my cant sort it out and its driving me mad.
$script = "
$(document).ready(function(){
$('.row').hover(function() {
var id = ($(this).attr('id').replace(/\D/g, ''));
$('.row-edit-' + id).css('display', 'block');
}, function() {
var id = ($(this).attr('id').replace(/\D/g, ''));
$('.row-edit-' + id).css('display', 'none');
});
});
";
So its a bit of jquery inside a php tag, might be horrible to look at but as I’m using it sparingly its not too bad.
If anyone here has studio or eclipse could they give it a quick fix?
Thanks,
Daniel
Taken from here PHP Strings
Edit: Sorry, I made a typo, corrected it now!