JavaScript How to display information in small box

Attachment

I have added [?] in right side of the form to show information about respective fields. I want to show information in small box after clicking [?]. How can i do that?

Thanks in advance.

Answer:1

I would recommend you to use tipsy for this

Answer:2

I think your requirements are so simple that I wouldn't use a framework to solve it. Just put a hidden element next to the box and show it on click

<div style="display:none" id="helpText" class="helptTextBox">
    <div class="closeIcon">X</div>
</div>

$('#questionBox').click(
  function(){
    $("#helpText").show();
  });



$('.closeIcon').click(
    function(){
        $(this).closest(".helptTextBox").hide();
    });
Answer:3

How come I can replace one escaped newline \n from a text area with anything... str1 = str1.replace(/\n /g,"7 "); but it does not work with two of them? str1 = str1.replace(/\n\n /g,"7 "); ...

How come I can replace one escaped newline \n from a text area with anything... str1 = str1.replace(/\n /g,"7 "); but it does not work with two of them? str1 = str1.replace(/\n\n /g,"7 "); ...

  1. replace escaped newline

We are using a script that allows us to to change the follow up URLS of a form dynamically so we can use the same form across multiple assets but have different follow up pages. The issue is that ...

We are using a script that allows us to to change the follow up URLS of a form dynamically so we can use the same form across multiple assets but have different follow up pages. The issue is that ...

This has been answered quite a few times before and all the responses seem to point to specificity of the CSS, but as far as I can tell, that does not seem to be the case here. HTML <button class=...

This has been answered quite a few times before and all the responses seem to point to specificity of the CSS, but as far as I can tell, that does not seem to be the case here. HTML <button class=...

  1. jquery override addclass

I have an XML file with many nodes that look just like this: <map-item> <location-name>U Lot (Pine Sreet)</location-name> <link>https://maps.google....

I have an XML file with many nodes that look just like this: <map-item> <location-name>U Lot (Pine Sreet)</location-name> <link>https://maps.google....

  1. child element elements
  2. get elements child element jquery
  3. get child elements of element javascript
  4. get child elements of element
  5. element child elements javascript
  6. element child elements java
  7. child elements parent element