I am trying to insert an anchor tag inside a cell in an HTML table. Below is the code, somehow the tag is not being recognized and I do not get a hyperlink for that cell. What's wrong with this syntax?
$ ("# tranTbodyId"). Enclosed (' & lt; td & gt; & lt; a href =' pagecontonte.request.contextPath '+ "/ FciDetailDescription.spr">' + key + '& lt; / a & Gt; & lt; / td & gt; & lt; td & gt; '+ value.tradeDate +
Please provide your suggestions. Thanks. / P>
< P>
You have some incorrect quote characters
$ ("# tranTbodyId") .append ('& lt ; Tr & gt; & lt; td & gt; & lt; a href = '+ pagecontonte.request.contextpath +' "/FciDetailDescription.spr"> '+ key +' & lt; / a & gt; & lt ; / Td>
Note: pageContext.request.contextpath To get the value of
var path = "$ {pageContext.request.contextPath}";
In that case it will
$ ("# TranTbodyId"). Enclosed ('<'> & lt; a href = '+ + path + '/Fcipage.spr>' + key + '& lt; / a & gt; & lt; / td & gt; ...'
Popular posts from this blog
I have a text that includes text input and selection box. I was trying to apply Laravel validation. I now want to retain user input values if the verification does not succeed. I'm able to get it on the input box, but not on the selection box. This is my code {{form :: select ('vehicles_year'), how the first selected value (in the selection box) will show. $ Model year, '-1', ['id' = & gt; 'Vehicles_year'])}} & lt; Span class = "help-block" id = "vehicles_year_error" & gt; @if ($ errors-> ('vehicles_year')) {{$ errors- & gt; First ('vehicles_year')}} @endif & lt; / Span & gt; -1 I am the default value key when I am showing the form load. What I do is that I add the "default" option which is "nothing" Is set to. In the validity rules, I say this value is necessary. If the user does not choose any of the other options, the verification fails. $ op...
मेरे पास निम्न प्रोग्राम है import java.util। *; Import java.text। *; आयात करें org.joda.time। *; सार्वजनिक श्रेणी के स्कोप कंट्रोल {सार्वजनिक स्थिर अंतराल मिलनसार () {दिनांक समय currDate = नया दिनांक समय (2008, 4, 4, 15, 30, 0, 0); दिनांक समय epochDate = नया दिनांकटाइम (2000, 1, 1, 12, 0, 0, 0); अंतराल अंतराल = नया अंतराल (युरोप डेट, करोडेट); वापसी अंतराल; } सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {डबल दिनबात = मिलते समय ()। ToDurationMillis () / 1000/60/60/24; StdOut.println (daysBtween); }} मुझे आउटपुट मिल रहा है: 3016.0 लेकिन जो मैं देख रहा हूं वह है: 3016.1458333333 मैं क्या कर रहा हूँ ? toDurationMillis एक लंबा लौटा देता है, और प्रत्येक प्रभाग को int के रूप में घोषित किया जाता है। जावा इस प्रकार इनट्स को लॉन्ग में परिवर्तित कर देगा और डिवीजन को लंबे समय तक लौटाना होगा। परिणाम को अंत में दोहरे रूप में परिवर्तित करना। डबल्स का उपयोग करके अभिव्यक्ति करने के लिए जावा को बताने के लिए, अभिव्यक्ति के किसी भी घटक को दोहरे रूप में घोषित करें। उदाहरण के लिए: ...
I am using a button to submit my form, but the tabindex works on everything but the button I can not get the button to highlight everyone by using the tab key. & lt; Button type = "submit" class = "button" tabindex = "11" & gt; Submit & lt; / Button & gt; Any ideas? I just tried to make this issue but my example works. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Input type = "text" tabindex = "1" /> & Lt; Input type = "text" tabindex = "2" /> & Lt; Input type = "text" tabindex = "3" /> & Lt; Input type = "text" tabindex = "4" /> & Lt; Button type = "submit" tabindex = "5" & gt; Submit & lt; / Button & gt; & Lt; / Body & gt; ...
|
Comments
Post a Comment