I have the following:
<div id="unique" class="myclass xyz_345">...</div>
Question: How do I access what # is after xyz_, given that I have 2 css classes being applied to it? (In the example above, it would be the number 345).
I've tried the following, but it does work:
var num_after_xyz = $('unique').attr("class").substring(4);
...
after running the command java -jar selenium-server.jar -htmlSuite "iexplore" "http://www.google.com/" "C:\Selenium\suite.html" "C:\Selenium\results.html" browser opens and shows page cannot be displayed on the test suite column.Help me out in this?
...
Here is the HTML snippet:
<input type="text" name="UPCtext" id="UPCtextBar" value="" placeholder="Type UPC number" class="UPCvalue"/>
There are no events bind()'s or live()'s associated with this input field.
If I remove jQTouch it works as it should, so, have anyone been through this problem?
...
Is it possible to use CSS to disable autocomplete on a form element (specifically a textfield)?
I use a tag library which does not permit the autocomplete element and I would like to disable autocomplete without using Javascript.
...
I'd like to create columns of links in an MVC2 view, like this:
a g m
b h n
c i o
d j
e k
f l
I could build a table row by row, doing some math to determine which items should be in the row, or I could build a table per column, but I'm hoping there's a simpler way to do this.
Is there?
...
What's a better practice? Load data in HTMLformat or JSON-format? When I load HTML i'm able to keep all the html in my php view-file. When i load JSON I have to put it in html elements clientside with javascript.
I know that a 'best-practice-question' isn't suitable for stackoverflow. So a better answer to my question is a list of benef...
What is the best method to put my company logo with a link at the end of the footer in every website which I make (if the client allows me)?
First, I would host the logo image on my site. What would then be the best method in xhtml and css for me to put in my logo?
...
What practical benefits can my client get if I use microformats on his site for every possible thing?
How can I explain these benefits to a non-technical client?
...
HI Everyone..
I am not able to align links,videos,photos etc in right way.Foe example i have aligned sign out on right side page but when i click on any area which falls in the row area(in which sign out is placed),i got sign out but i want when i click only on link i get sign out.I have used photos in my pages and videos.I have placed ...
I have a form where there's a "Submit" button and a "Cancel" anchor. The HTML is this:
<input type="submit" value="Submit" />
<a href="some_url">Cancel</a>
I'd like for the two to look and act the same. Nothing fancy, just something similar to how the "Ask Question" anchor looks on StackOverflow.
I can get the two to look somewhat ...
i am querying text from a DB. if the text ends to be too long, I want to be able to wrap the text after, say, 400 characters and display a "..." at the end.
how can it be done?
...
I have a form which has several tags.
is this possible:
<select name="select1" id="select1">
<option id="1990" value="1990">1990</option>
<option id="1991" value="1991">1991</option>
</select>
<select name="select2" id="select2">
<option id="1990" value="1990">1990</option>
<option id="1991" value...
I wonder why diametrically opposed margins (a margin-top following a margin-bottom) between to block elements (eg. divs) are merged, while between a block element and a table, those margins add up.
Example:
<style>
.a { margin-bottom: 18px; }
.b { margin-top: 6px; }
</style>
<div class="a">Foo</div>
<div class="b">Bar</div>
...
I have a php "add classified" page where users may fill in details in several drop-lists.
At the bottom, I have a picture upload tool, which requires the page to submit to itself, and then preview that image.
Problem is, whenever this is done the drop lists values are resetted, so the users have to re-select everything.
I have asked th...
I have the following block of HTML:
<p>The quick brown fox jumps over the lazy dog — The quick brown fox jumps over the lazy dog.</p>
<p>The quick brown fox jumps over the lazy dog — The quick brown fox jumps over the lazy dog.
<br>The quick brown fox jumps over the lazy dog — The quick brown fox jumps over the lazy do...
Hi
I am trying to parse HTML in android from a webpage, and since the webpage it not well formed, I get SAXException.
Is there a way to parse HTML in android?
(my guess is not, so the follow up question is: what is the best way to do this? )
Thanks
...
I'd like a div (#menu) to be fixed with its bottom edge to the bottom edge of its container (#cont). Normally this is easy with absolute positioning, but I want #cont to stretch to the size of #menu. Then why does it matter if it sticks to the top or bottom, you wonder?
I use the jQuery slideUp effect which vertically shrinks #cont in a...
So I'm running this javascript, and everything works fine, except the paths to the background image. It works on my local ASP.NET Dev environment, but it does NOT work when deployed to a server in a virtual directory.
This is in an external .js file, folder structure is
Site/Content/style.css
Site/Scripts/myjsfile.js
Site/Images/filter...
How do I make an entire DIV a clickable hyperlink. Meaning, I essentially want to do:
<div class="myclass" href="example.com">
<div>...</div>
<table><tr>..</tr></table>
....
</div>
And whenever someone mouse hovers of the myclass DIV, I want the entire DIV it to be a clickable hyperlink.
...
Hi,
I am making a flex app to embed in my ASP.NET portfolio. What is the best way to embed the .swf file into the HTML of the .aspx page?
Thanks
...