"<td style=max-width:0px;>" +
"<span> Issuer: <a href=/app?"+JSON.stringify(issuer)+" target='_blank'> <span> " + celldata[rowIndex].hiddenprops.issuer +" </span></a> </span>"+
"</td>"
The result should be: "issuer: rojioijoijrieroirjg"
but I get
: "issuer:
rojioioijoij"
on two different lines. I tried display:inline on every tag and tried to insert tags and stuff but nothing is working?
Any idea how I should proceed. All I want is a label on the same line than my link inside a <td>
Related
I'm trying desperately to extract text from within a span which is within text which is within a div (underlined in the image)
This is the relevant part of the code ...
<div id="groupBlock3">
<div class="groupBlockTitle">
::before
"
ALL TEACHERES ("
<span class="activeTeachers">12</span>
" ACTIVE, "
<span class="archivedTeachers">1</span>
" ARCHIVED)
"
<div>...</div>
<div>+ enroll a teacher</div>
</div>
<div>...</div>
</div>
I can retrieve the text from within the first div with this ...
"normalize-space(//div[#id='groupBlock3']/div[1])"
... which gives me ...
'ALL TEACHERES ( ACTIVE, ARCHIVED) + enroll a teacher'
... but, try as I might I cannot get the text from within the first or second span - it just returns a null string. Please help me!!
Try one of these XPath-1.0 expressions:
normalize-space(//div[#id='groupBlock3']/div[1]/span[1]/text())
which results in 12, or, for the second span
normalize-space(//div[#id='groupBlock3']/div[1]/span[2]/text())
which results in 1.
But if you want all text of the first div, use this expression
normalize-space(string(//div[#id='groupBlock3']/div[1]))
which gives you the result
::before " ALL TEACHERES (" 12 " ACTIVE, " 1 " ARCHIVED) " ...+ enroll a teacher
I want to put an image + h5 inside the "a" tage in WordPress..it seem's not working.. properly syntax error whith calling the image!..
echo '<li>' . "<img src='".get_post_meta($post->ID, "news_images", true) . "' />" .$recent["post_title"].' </li> ';
Try this
<li><img src='".get_post_meta($post->ID, "news_images", true) . "' /> .$recent["post_title"] </li>
Hope this works
I am using this code to store HTML code in a variable called $conversions
$conversions = "GBP " . number_format($file*0.84) . "CHF " . number_format($file*1.23)
However I can't seem to figure out how to add a <br> before the word "CHF ".
Any ideas?
The whole code is as follows:
<?php
$file = get_field('fl_price');
if(trim($file) == ""){echo 'Price on Application' ;}else{$conversions = "GBP " . number_format($file*0.84) . "<br />CHF " . number_format($file*1.23) ;echo 'EUR ' . number_format($file) . "</br><a class=\"wp-tooltip\" title=\" $conversions \">Other Currencies</a>" ;}
?>
$conversions = "GBP " . number_format($file*0.84) . "
CHF " . number_format($file*1.23);
Echoing $conversions will now have a HTML-linebreak before CHF.
You are adding your string to an attribute of <a> called title. This isn't going to be displayed and is certainly not going to render any HTML (like a br tag).
edit:
As per OptimusCrime's suggestion, this does work:
http://jsfiddle.net/5rM4u/1/
Replace your <br/> with
and you're good to go.
You are trying to print the $conversions variable in the "title" of the "a" tag. just using <br /> will not work.
See some of the answers to this question "How can I use a carriage return in a HTML tooltip?" it may contain the answer that you are looking for.
Is there any way that I can make CC Quid, Application Number, Application Title and in the same way other thing in bold, I don't want their value to be in bold. Any suggestions will be appreciated..
html = html + "<table border ='0'>";
html= html + "<tr>";
html =html + "<td>CC Quid: " +(data.response.docs[0].c_cc_guid)+"</td></tr>";
html =html + "<tr><td>Application Number: " +(data.response.docs[0].c_application_number)+"</td></tr>";
html =html + "<tr><td>Application Title: " +(data.response.docs[0].c_application_title)+"</td></tr>";
html =html + "<tr><td>Application Type Name: " +(data.response.docs[0].c_application_type_name)+"</td></tr>";
html =html + "<tr><td>Case Mgr Name: " +(data.response.docs[0].c_case_mgr_name)+"</td></tr>";
html =html + "<tr><td>Filed Date: " +(data.response.docs[0].c_filed_date)+"</td></tr>";
html =html + "<tr><td>Lead Atny Name: " +(data.response.docs[0].c_lead_atny_name)+"</td></tr>";
html =html + "</table>";
Surround what you want to be bold with:
<span style="font-weight:bold">Your bold text</span>
This would go inside your <td> tag.
Wrap the name in a span, give it a class and assign a style to that class:
<td><span class="names">Name text you want bold</span> rest of your text</td>
style:
.names { font-weight: bold; }
I might be misunderstanding your question, so apologies if I am.
If you're looking for the words "Quid", "Application Number", etc. to be bold, just wrap them in <strong> tags:
<strong>Quid</strong>: ...
Hope that helps!
you can try this
td.setAttribute("style", "font-weight:bold");
Try this
.Bold { font-weight: bold; }
<span> normal text</span> <br>
<span class="Bold"> bold text</span> <br>
<span> normal text</span> <spanspan>
I would use to table header tag below for a text in a table to make it standout from the rest of the table content.
<table>
<tr>
<th>Dimension:</th>
<td>98cm x 71cm</td>
</tr>
</table
I want to add a link in List but I'm creating list dynamically. When I click the list item, it display the detail view. For example
When I click land end it goes to detail of lands then I click coupon ,it goes to particular page, but I want set a link for save and email then I want to place the name which is in that image?
listItem.innerHTML = "<img src='" + image + "' class='ui-li-icon' style='height:20px; width:20px;'></img> <a href='#' data-role='button' id='" + i + "' data-theme ='c' rel='external' data-inline='true' style='margin-left:1.5em; margin-top:2px;' ><font size='2' face='Arial, Helvetica, sans-serif'>" + prodName[i] + "</font></a>";
You can not execute javascript that are placed on the ajax retrieved pages, as jquery mobile is not designed for that purpose, but you can use it's event system that will help you http://jquerymobile.com/demos/1.0a4.1/docs/api/events.html