Scenario:
You have a CMS where an user is able to determine what content will be displayed.
The content consists of multiple colums with links underneath them. It looks something like this:
Column name
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
Column name2
link1 link2 link3 link4
link5 link...
i am trying to get the value of the raido boxes when you click on them. I am using jquery
i have been looking at change. click. i cant get any of them to work.
<table>
<tr>
<td>Some text 1 </td>
<td><input type="radio" value="txt1" name="myRadio" id="myRadio" /></td>
<td>Some text 2 </td>
<td><input type="radio" value="txt2" na...
Can you recommend me a way when is clicked on the second box to disappear and in its place to move the third box ?
You can see it here http://jsfiddle.net/q6t7W/
...
Im using jQuery UI sortable on a table.
My javascript:
$("#linksSortable tbody").sortable({
handle : '.handle',
//helper : fixHelper,
update : function () {
var order = $('#linksSortable').sortable('serialize');
//$("#info").load("ajaxtest.php?"+order);
alert(order);
}
});
My table:
<ta...
Hello
I have an Object like this (reduced form)
<script type="text/javascript">
var tables = [
{id : 1,
name : "event",
attributes: [
{
attname : "eventID",
PK : true
}
]
}
</script>
and i use the microsoft template plugin to create ne HTML
<script id="db_tbl_template" type="text/html">
<div...
Hello
The javascript code below is about half way on my php page, I can't directly modify the radio buttons with IDs q_251_789 and q_251_790 on my page unfortunately, hence why I'm using JS to add attributes to those two radio buttons:
<script><!--
$("#q_249_249").hide();
$("#q249").hide();
$("#q_251_789").attr("onClick","yesClicked();...
Hay, I have some markup like this
<div id="some-id">
<h2><a href="#">Title</a></h2>
</div>
and some jQuery like this
$(this).parent().parent().attr("id")
$(this) is referring to the 'a' tag within the 'h2'
Is there an easier way to select the parent div without using parent() twice. I tried
$(this).parent("div").attr("id")
...
I have a category dropdown selection element in my form. The form is validated with jQuery as follows:
$('#myForm').validate({
rules: {
text: {
required: true
},
category: {
required: true
}
},
messages: {
text: {
required: "Text required"
...
Hi folks
I'm using the jQuery autocomplete plugin from http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
When a user selects a result from the dropdown, the input field gets focused. How can I stop the plugin from doing that?
I made it work using the tip from this post: http://stackoverflow.com/questions/609362/jquery-aut...
what is the meaning of these jquery random attributes in html and how jquery use them
any ideas please ??
...
I have the following setup:
ASP.Net page which contains a web form (payment form).
Certain hidden page elements containing help text (for example a "where is the card security code" image)
Currently, when the user clicks a help link for the form element, for example: "Where Can I Find This?" for security codes, I use jQuery to $.show...
$(this).html().replace("0 days","");
i want to replace "0 days" to become "". Currently the above statement will replace "0" to "" . that is not what i want. i want to replace entire statement "0 days"
...
if (selectedCountry == "USA") {
$("#state").show();
}
How can I change name for my div #state with the same condition?
(to add name="NewName" to my div id="state")
Smth like:
if (selectedCountry == "USA") {
$("#state").show();
$("#state").name("NewName"); <-- ?
}
...
Hello,
I am trying to validate a form using the jquery validation plugin.
It's usually pretty easy but this time I'm using dynamic field.
The new fields are not being checked so I tryed to remove the validator then to recreate it but It's doesnt seem to work.
$j("#add").click(function(){
$j("#lignes").append($j(".ligne_vide:l...
how would i loop through all the radio boxes on the page and get the value?
have the following command got anything to do with it?
$('input[type=radio]')
...
Hi,
I am trying to implement Jeditable for a timestamp field.
Example
2010-10-13 00:14 PDT
When the user clicks on the field, the date section should pop up a calendar or masked input
and the clicking on the time should pop up the editable time field.
I need a SINGLE submit for both, since the timestamp is just one field.
I looked...
I have a form with a datepicker. The datepicker has a user-facing d/m/Y formatted datepicker input and a hidden altField to go with it for use with the DB.
If the user clears the text in the input field it doesn't clear the altField as well.
I'm using the below JS to get around this problem. Is there a more correct way to do this or is...
Hi,
Using JQuery Validation plugin, I am trying to call the .valid() method without the side-effects of displaying error messages on screen. I have tried a number of scenarios with no success, my latest being:
$('#signup').validate({
showErrors: function() { return; },
errorElement: "",
errorClass: "...
hello there i am constructing a site where i can upload my own mp3 files.
So i have the file uploaded to the server and when i link to it the browser plays the song.
Is it possible to make it so when the link is press it downloads the file instead of playing it.
For example www.example.com/music/song.mp3 once clicked it downloads inst...
jQuery apparently will re-size an image if the image is 2 big to fit into the lightbox properly.
( As seen here ).
This does not happen for me though because when I view a LARGE image it takes up the whole page and you have to scroll to see the image.
Is there something I am missing where I can set the MAX width and height of the ima...