Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8727939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:31:54+00:00 2026-06-13T08:31:54+00:00

Got a weird little problem. I want to create the text hover on an

  • 0

Got a weird little problem.

I want to create the text hover on an item to display that item’s “description,” which is an attribute of that item’s model. So I basically did this in my view:

<div title=<%= item.description %> ><%= item.name %></div>

The weird thing is, while all the model calls are working correctly (item.name and item.description are calling up the right things), only the first word of item.description is showing up when I hover. In other words, if item.description is “This is a super cool item!”, when I hover over that div with item.name, the hover just says “This”.

This may have something to do with the :description attribute, which is currently of type text, (which I thought was for long strings, like my descriptions). But maybe not.

Any idea why this might be happening, and how to fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:31:54+00:00Added an answer on June 13, 2026 at 8:31 am

    I think you need to add quoting to the HTML in the view. If you view source on the generated HTML, I’m willing to bet it looks like this:

    <div title=This is a super cool item! >
    

    The browser will interpret that as the div having a title with the value This, and then attributes named is, a, super, cool, and item!.

    If you change your view to this:

    <div title="<%= item.description %>" >
    

    Then your generated HTML should look like this:

    <div title="This is a super cool item!" >
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a weird little bug which is occurring under MvvmLight v4 (.NET 4
i got a weird problem regarding egrep and pipe I tried to filter a
I've got a weird problem: both my if and else statements are executing. Here's
I've got a weird problem and it's most obviously due to my new status
I've got a weird problem where if i do something like this in a
I've got a weird issue that almost seems like a Visual Studio 2008 issue.
I got this very weird problem...and it's very important to my...dead line is close...and
Question I got a little problem to see what happens in my Service. I
I've got a wierd/annoying little bug which I don't even know how to properly
I've got into a rather simple, yet annoying problem. I'm trying to create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.