` are present in this `data` result. For more, Have to know what is the content of the page called by Ajax. – Louys Patrice Bessette Jul 30 '16 at 23:21

  • if you write a script tag in a page and call it from ajax. the script tag will be executed normally. – Alaa M. Jaddou Jul 30 '16 at 23:22
  • 1
    @PraveenKumar: Scripts called by ajax executes. No problem with it. – Louys Patrice Bessette Jul 30 '16 at 23:23
  • i try to make it withour `dataType` and try to make it with `json` and try to make it with `html` the same result @LouysPatriceBessette – Alaa M. Jaddou Jul 30 '16 at 23:23
  • 1
    Show your Ajax target content. – Louys Patrice Bessette Jul 30 '16 at 23:24
  • 1
    @AlaaM.Jaddou Inspect the SCRIPT tag and see if you could find any `display: block` or something? – Praveen Kumar Purushothaman Jul 30 '16 at 23:25
  • @PraveenKumar sorry for that but when i saw that duplicated to not related question that's why i talk like that, please don't be upset :) – Alaa M. Jaddou Jul 30 '16 at 23:28
  • and for `display: block;` there is no css in my target content – Alaa M. Jaddou Jul 30 '16 at 23:28
  • and the target content is in the question i update it with that, @LouysPatriceBessette – Alaa M. Jaddou Jul 30 '16 at 23:29
  • 1
    @AlaaM.Jaddou That's the reason I reopened it. – Praveen Kumar Purushothaman Jul 30 '16 at 23:30
  • 1
    @AlaaM.Jaddou What happens when you inspect? Is it inside ` – Praveen Kumar Purushothaman Jul 30 '16 at 23:30
  • yeah it's in a script tag in the inspect @PraveenKumar – Alaa M. Jaddou Jul 30 '16 at 23:32
  • 1
    @AlaaM.Jaddou Right side any `display: block`? – Praveen Kumar Purushothaman Jul 30 '16 at 23:32
  • 1
    Whoahh! That a big data expected for your `$('#' + offerKey)` div (I suppose it's a div). But size doesn't matter. Try removing `$.parseHTML(data, document, true);` – Louys Patrice Bessette Jul 30 '16 at 23:33
  • @PraveenKumar i add the target as update for my question and there is no `display: block` in it bro – Alaa M. Jaddou Jul 30 '16 at 23:34
  • i try this also i add it when i start get this issue @LouysPatriceBessette – Alaa M. Jaddou Jul 30 '16 at 23:34
  • offerKey is something like this `Q0tgRYE03sB3WNzP` that's not a big data for the id attribute and this will never be bigger than this – Alaa M. Jaddou Jul 30 '16 at 23:36
  • 1
    Can you provide a live link ? – Louys Patrice Bessette Jul 30 '16 at 23:38
  • i'm sorry this will need time coz i'm working on local and there is big changes happend and if i need to upload it, will need to compare it with the online copy and upload the changes ...etc you know :( @LouysPatriceBessette – Alaa M. Jaddou Jul 30 '16 at 23:40
  • 1
    I'm in no rush here... If you want to fix this with me, I have to see what's going on in clear. Because what you provided yet looks ok. – Louys Patrice Bessette Jul 30 '16 at 23:41
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/118718/discussion-between-alaa-m-jaddou-and-louys-patrice-bessette). – Alaa M. Jaddou Jul 30 '16 at 23:43
  • 1 Answers1

    2

    By default, the <script> tag is meant to have display: none using the User Agent Stylesheet:

    enter image description here

    I strongly believe if you inspect the element, you will find that in the Computed Styles as I shown above, it will be inheriting display styles somehow. That's the reason.

    Find something like:

    .divClass * {display: block;}
    

    Coz, no one targets <script> tag! :P

    Praveen Kumar Purushothaman
    • 164,888
    • 24
    • 203
    • 252