i am use $(expr).attr("hash",value) to set a "hash" attribute for HTML anchor element "a"
but the Jquery would not do that. but if i change expr to "div", then i can ... |
I have this html code that i want to edit with jQuery.
Here is the html.
<html>
<head>
<title>JQuery Problem 1</title>
<script type="text/javascript" ...
|
In trying to select elements that have any attributes, the following throws a jQuery syntax error.
$("div[*]")
Is there a selector to check if a tag has any attributes?
Tested with jQuery 1.3
|
I have an <li> tag and I want to have some info associated with it so that a peice of javascript can access it i.e. <li id='someVal' class='someVal' meta='additionalInfo'>
I would like ... |
<li id="test">
<a title="<span class='something1'>Some text</span> <br />
<span class='something2'>Some text 2</span>"></a>
</li>
Is it possible to get "Some text 2"?
alert(what?)
UPD: The code works with jQuery Tooltip ... |
I need to remove all the links in my document that start with "/{tag_" or "{tag_"
so far I have $("a[href^='/{tag_']").remove(); but it's not working,
I also had
$("a").each(function() ...
|
Having a little trouble on this one. I need a way using Jquery/JS to find the HREF attribute of the enclosing link tag:
<a href="something.html"><img src="img1.jpg" class="active"></a>
I want to target the img ... |
|
Is there a way of getting the attribute - such as 'rel' from the selected option of the 'select' tag - i.e.?
<select name="menu" id="menu">
<option value="1" rel="123">Option 1</option>
...
|
how can i adding attribute into specific html tags in jquery?
in example like this simple html :
<input id="someid" />
and adding attribute disabled="true" like this :
<input id="someid" disabled="true" />
thanks...
|
can i adding some value attribute on all src tags in current html page with jquery ?
in example this html :
<img src="images/slider/slide4.jpg" />
to be like this :
<img src="http://www.website.com/images/slider/slide4.jpg" />
thanks guys
|
I have something like this:
<span id="anId" someOtherAttributes....>test</span>
which I want to change into:
<a id="anId" theSameOtherAttributes...>test</a>
I have two questions :
- How can I change just the tag name?
or
- How can I copy ...
|
i have a HTML page having a attribute. When i insert the attribute named "control_label". When i assign a value "Enters Your Name" in this attribute everything is okay.
But when ... |
|
|
|
|
Here's what I'm trying to do:1) I get reference to a div that's on my page:var theDiv = $("#" + divID);2) Now I want to add a custom attribute tag to it, so for instance I want to add "winWidth" so that the div object now contains "winWidth=" for instance.3) I want to set winWidth now since it's part of theDiv ... |
|
This is an odd questions. I have a huge form with a lot of data.There is a table that data in it I need to display on a print screen(of course this data isn't being displayed in the regular table). So,I put the display text in a span tag.So, this is how each item will look:Item ... |